Skip to main content

Timeline for PIC timing question

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Oct 10, 2015 at 7:08 answer added Hans timeline score: 0
Oct 9, 2015 at 21:53 answer added David timeline score: 1
Oct 9, 2015 at 21:46 comment added David If you never clear the flag the interrupt will continue to fire, this is by design. Clear the T0IF if you don't want this to happen.
Oct 9, 2015 at 21:32 comment added rdtsc I guess it would be prudent to use better terms for "oscillator frequency" (Fosc) and "instruction frequency" (Fosc/4) and "instruction period" (Tcy = 1/(Fosc/4)) as to avoid any confusion. Most branch instructions take 2 instruction periods (Tcy). Some may take 3, "when an instruction references an indirect file register and it points to program memory."
Oct 9, 2015 at 20:01 comment added user02222022 Many, if not all 8-bit PICs take 4 cycles to implement an instruction.
Oct 9, 2015 at 19:42 comment added RedSmolf Sorry forgot to write that. I'm using PIC18F4550
Oct 9, 2015 at 19:39 comment added tcrosley Which PIC are you referring to?
Oct 9, 2015 at 19:10 comment added RedSmolf Yes, that is why I added the 'nop's after each branching
Oct 9, 2015 at 17:13 comment added rdtsc Note that branch instructions take two cycles on most PIC devices. This is because the program counter is more than 8 bits wide, so must load two values to execute it.
Oct 9, 2015 at 17:06 review First posts
Oct 9, 2015 at 17:37
Oct 9, 2015 at 17:06 history asked RedSmolf CC BY-SA 3.0