Hi, I just got my PicBasic compiler last week, with an Epic programmer, so I'm pretty much brand new to this. I've been reading the posts on here and learning some good stuff. Anyways, I'm trying to figure out how to write to just a particular bit in a register. I'm using a 16F818 which has an internal osc. I' m trying to set the clock speed, so I used:
Write $8FE,%00010000
I only want to change bits 4, 5, and 6. The datasheet says that bit 2 is IOFS. I don't know what that is, or what the default setting is, so I'm trying to just change the bits that I want to and leave bit 2 at default. The others besides 2, 4, 5, and 6 are unused.
Thanks in advance for any help.
Bookmarks