I am currently converting a routine that is written for Arduino to Picmicro'
Can anyone tell me what time is represented in the following couple of delays.
IOW, the delay time they represent.?
Can it be assumed that the Arduino runs at a typical clk rate, 16Mhz?
I don't see any indication in the pgm.
I can produce an equivalent PIC TD time using the golovchenko site tool.
Delays in question:
delay_us:
LDI R21, 55
l5: DEC R21
BRNE l5
RET
;---------------------------------------------------------------
delay_ms:
LDI R21, 255
l7 : LDI R22, 255
l8 : LDI R23, 20
l9 : DEC R23
BRNE l9
DEC R22
BRNE l8
DEC R21
Edit: I believe the above was written for Arduino Nano which indicates 16Mhz clk.
Can anyone tell me what time is represented in the following couple of delays.
IOW, the delay time they represent.?
Can it be assumed that the Arduino runs at a typical clk rate, 16Mhz?
I don't see any indication in the pgm.
I can produce an equivalent PIC TD time using the golovchenko site tool.
Delays in question:
delay_us:
LDI R21, 55
l5: DEC R21
BRNE l5
RET
;---------------------------------------------------------------
delay_ms:
LDI R21, 255
l7 : LDI R22, 255
l8 : LDI R23, 20
l9 : DEC R23
BRNE l9
DEC R22
BRNE l8
DEC R21
Edit: I believe the above was written for Arduino Nano which indicates 16Mhz clk.
Last edited: