Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

delay question

Status
Not open for further replies.
The routine reads the incoming bit (either HIGH or LOW), and sets the Carry bit accordingly. This is then rotated in to the Rcv_Byte GPR, the 'f' at the end of the instruction means to write the result back to Rcv_Byte (a W would mean to write the result back to W).

This is repeated 8 times in a simple loop, to build up the complete 8 bits for the full byte.
 
As for software delays, they are far more versatile and often more accurate than using timers - you can adjust software delays to give timing to one instruction cycle, you can't do that with timers.

I have used a mixture of hardware and software to give timing to one cycle, while other code can be executed.

The trick is to wait for the timer to get to an intermediate value, then detect the timing exactly.
 
Status
Not open for further replies.

Latest threads

Back
Top