For all pic18 users out there. Are any of you having a problem with coding delays, more specifically delay codes generated from the website Emami recommended to us?
Tags:
I tried my own and the delay generator, both didn't work
I think the one in the textbook on page 7-116 might work
You just use the fact that if you use the 10Hz clock the cycle is 0.4 us or something and the goto is 2 cycles. So then you can figure out your own delays. But i'm not so sure if my delays work either - it's pretty hard to test
What specific problem are you having? Is the compiler complaining? I've used a delay code generator just fine, but you can't use a PIC16 one.
© 2024 Created by PML. Powered by