Hi Albert,

a.faber wrote:

> It is already very useful, it cought already the first inconsitencies in the 
> device files.

In the first place (maybe Seb can help): When I browse the Jallib.Wiki 
page I don't see FindTimers.wiki, but I see it in the Source.wiki list. 
Why is that? Does a wiki have to be created first from the web interface 
before it can be updated via SVN?

The normalization for timer fields in the device files is currently 
limited to some INTCON bits: T0IE -> TMR0IE and T0IF -> TMR0IF.

If any other normalisation is needed, please do a suggestion (an 'Issue' 
seems the right place).

> When i sorted everything by * reg * I noticed that a few T0CON had different 
> values which did not look correct
> When looking for example at the 18f2450,
> 
>       18F2450 T0CON TMR0ON T08BIT T0CS T0SE T0PS3 T0PS2 T0PS1 T0PS0
> 
> 
> This matches with the device file (so wiki is genration is consistent with 
> device files)

Yes (not surprisingly), the scripts for this wiki and the device files 
both take the MPLAB .dev files as input and don't change any name (yet).

> var volatile byte   T0CON                     shared at 0xFD5
> var volatile bit    T0CON_TMR0ON              shared at T0CON : 7
> var volatile bit    T0CON_T08BIT              shared at T0CON : 6
> var volatile bit    T0CON_T0CS                shared at T0CON : 5
> var volatile bit    T0CON_T0SE                shared at T0CON : 4
> var volatile bit*4  T0CON_T0PS                shared at T0CON : 0
> 
> 
> however, the datasheet and the INC file state

(matching fields removed)

> bit 3 PSA: Timer0 Prescaler Assignment bit
> 
> 1 = TImer0 prescaler is not assigned. Timer0 clock input bypasses prescaler.
> 
> 0 = Timer0 prescaler is assigned. Timer0 clock input comes from prescaler 
> output.
> 
> bit 2-0 T0PS2:T0PS0: Timer0 Prescaler Select bits
> 

(some not interesting lines removed)

> So I don't know how PSA is replaced by T0PS3 in the device file, any ideas?

Yes, this is an error in the MPLAB .dev files, which specify a 4-bit 
field 'T0PS' for the 18F2420 (and probably others). I'll fix this in the 
device files (and FindTimers.wiki).

I have opened an issue #82 for this defect.


> Noticed the following T0CON irregularities, have not checked if there all 
> wrong

Do you mean *only* this glued-together T0PSA and T0PS fields? Or are the 
other irregularities?

> Al bert

Typo or joke?

Regards, Rob,

-- 
Rob Hamerling, Vianen, NL (http://www.robh.nl/)

--~--~---------~--~----~------------~-------~--~----~
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