The osccon register controls the frequency of the internal clock if you are using it. I am unfamiliar with assembly language but I think you simply need to use NOP commands/ pauses to correctly time how long a pin is on/off...
The osccon register controls the frequency of the internal clock if you are using it. I am unfamiliar with assembly language but I think you simply need to use NOP commands/ pauses to correctly time how long a pin is on/off...
NOP = 1uS @ 4MHz
Set pin High, add 500 NOP statements, Set pin Low, add 500 NOP Statements... repeat... suppose that's one way of outputting 1KHz...
Do a forum SEARCH for Morse Code... I remember doing an example some time in pre-history...
Ah... here it is...
http://www.picbasic.co.uk/forum/show...31031#poststop
Bookmarks