On 1 Sep 2008, at 09:43 , Rob Hamerling wrote:

>> Also, I'd like to add:
>>
>>> -- This program assumes the internal oscillator
>>> -- is used with a frequency of 4 MHz.
>>> pragma target clock 4_000_000 Â  Â  Â -- oscillator frequency
>>> pragma target WDT Â disabled

Another thing: if we use 4 MHZ as clock, we should set IOSCS as well!

> -- This program assumes the internal oscillator
> -- is used with a frequency of 4 MHz.
> pragma target clock 4_000_000      -- oscillator frequency
> pragma target WDT       disabled
> pragma target IOFSCS    _4_MHz
> --

Since 8 MHz is the default value. This is only for PIC10F22X:

> G5-fiwihex:~/jalv2/jallib/unvalidated/include/device eur$ grep  
> IOFSCS *.jal
> 10f220.jal:pragma fuse_def IOFSCS 0x1 {
> 10f222.jal:pragma fuse_def IOFSCS 0x1 {


I noticed the LED blinking twice as fast.

There is also the matter of the OSSCAL trim value, programmed at the  
last memory location, but this is too complicated for a blink-a-LED  
program.


---
ir EE van Andel [EMAIL PROTECTED]  http://www.fiwihex.nl
Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
tel+31-546-491106 fax+31-546-491107



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to