I didn't even think about the overflows, what's the best way to remedy that? The RPM value will stay pretty low, usually around 60, but I can see that being a problem with the calculations.
I didn't even think about the overflows, what's the best way to remedy that? The RPM value will stay pretty low, usually around 60, but I can see that being a problem with the calculations.
So I just solved the problem, it's this line:
This of course brings up new problems, I'm not 100% sure what this line does, but now I've gotta try to figure that out.Code:'******************************************************************************************************** ' ' 'Configuration Bit Definitions @ __config _CONFIG1, _INTRC_IO 'sets the INTRC-OSC2 as RA6 ' ' '********************************************************************************************************
So I figured out that the line in question enables i/o functions on RB5 and RB7, but I still need the sound command to work on RB3. I've been reading through the PIC16F88 datasheet and trying to figure out how to properly set the configuration bits to allow this, but have yet to have any luck. Any bright ideas?
Bookmarks