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?

Views: 42

Reply to This

Replies to This Discussion

yes indeed, it's not working for me

have you just written your own code?

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.

Yes I've used the code generator as well but it doesn't seem to work. I've been testing it by connecting a simple led circuit to the devbugger. However the codes from the textbook/samples do work.

i figured it out...the problem with the code online is that is goes to the incorrect address for the pic 18....for those that want t use delays set the next addresx to your actual delay subfunction instead of the next index (i.e '$+2')

RSS

© 2024   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service