Hi Rob,
Another one, T2CON bit values are missing for 18f2439, 18f2539, 18f4439
Albert

----- Original Message ----- 
From: "a.faber" <[email protected]>
To: <[email protected]>
Sent: Sunday, August 02, 2009 12:22 AM
Subject: [jallib] Re: Timer Library?


>
> Hi Rob,
> Also the NT1SYNC for the 16f722 family  does not seem to be correct,
>
> var volatile bit    T1CON_T1SYNC              at T1CON : 2
>
> T1CON_T1SYNC should be T1CON_NT1SYNC ?
>
> Looking in the inc file for 16f722 there is the NOT
> NOT_T1SYNC                   EQU     H'0002'
>
> Looking for example to the 16f72.jal file seems to be correct
>
> var volatile bit    T1CON_NT1SYNC             at T1CON : 2
>
> Albert
>
>
> ----- Original Message ----- 
> From: "a.faber" <[email protected]>
> To: <[email protected]>
> Sent: Sunday, August 02, 2009 12:06 AM
> Subject: [jallib] Re: Timer Library?
>
>
>>
>> Hi Rob,
>> It is already very useful, it cought already the first inconsitencies in
>> the
>> device files.
>>
>> 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)
>>
>> 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
>>
>> bit 7 TMR0ON: Timer0 On/Off Control bit
>>
>> 1 = Enables Timer0
>>
>> 0 = Stops Timer0
>>
>> bit 6 T08BIT: Timer0 8-Bit/16-Bit Control bit
>>
>> 1 = Timer0 is configured as an 8-bit timer/counter
>>
>> 0 = Timer0 is configured as a 16-bit timer/counter
>>
>> bit 5 T0CS: Timer0 Clock Source Select bit
>>
>> 1 = Transition on T0CKI pin
>>
>> 0 = Internal instruction cycle clock (CLKO)
>>
>> bit 4 T0SE: Timer0 Source Edge Select bit
>>
>> 1 = Increment on high-to-low transition on T0CKI pin
>>
>> 0 = Increment on low-to-high transition on T0CKI pin
>>
>> 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
>>
>> 111 = 1:256 Prescale value
>>
>> 110 = 1:128 Prescale value
>>
>> 101 = 1:64 Prescale value
>>
>> 100 = 1:32 Prescale value
>>
>> 011 = 1:16 Prescale value
>>
>> 010 = 1:8 Prescale value
>>
>> 001 = 1:4 Prescale value
>>
>> 000 = 1:2 Prescale value
>>
>>
>>
>> ;----- T0CON Bits -----------------------------------------------------
>> T0PS0            EQU  H'0000'
>> T0PS1            EQU  H'0001'
>> T0PS2            EQU  H'0002'
>> PSA              EQU  H'0003'
>> T0SE             EQU  H'0004'
>> T0CS             EQU  H'0005'
>> T08BIT           EQU  H'0006'
>> TMR0ON           EQU  H'0007'
>>
>>
>>
>> So I don't know how PSA is replaced by T0PS3 in the device file, any
>> ideas?
>>
>> Noticed the following T0CON irregularities, have not checked if there all
>> wrong
>>
>>
>>
>>      18F2410
>>
>>
>>      18F2420
>>      18F2423
>>
>>
>>      18F2450
>>
>>
>>      18F2585
>>      18F25J10
>>      18F25J11
>>      18F25J50
>>      18F25K20
>>      18F2610
>>      18F2620
>>      18F2680
>>      18F2682
>>      18F2685
>>      18F26J11
>>      18F26J50
>>      18F26K20
>>      18F4220
>>      18F4221
>>      18F4320
>>      18F4321
>>      18F4331
>>      18F43K20
>>      18F4410
>>      18F442
>>      18F4420
>>      18F4423
>>      18F4431
>>      18F4439
>>      18F4450
>>      18F4455
>>      18F4458
>>      18F448
>>      18F4480
>>      18F44J10
>>      18F44J11
>>      18F44J50
>>      18F44K20
>>      18F4510
>>      18F4515
>>      18F452
>>      18F4520
>>      18F4523
>>      18F4525
>>      18F4539
>>      18F4550
>>      18F4553
>>      18F458
>>      18F4580
>>      18F4585
>>      18F45J10
>>      18F45J11
>>      18F45J50
>>      18F45K20
>>      18F4610
>>      18F4620
>>      18F4680
>>      18F4682
>>      18F4685
>>      18F46J11
>>      18F46J50
>>      18F46K20
>>      18F47J13
>>      18F47J53
>>      18F6310
>>      18F6390
>>      18F6393
>>      18F63J11
>>      18F63J90
>>      18F6410
>>      18F6490
>>      18F6493
>>      18F64J11
>>      18F64J90
>>      18F6520
>>      18F6525
>>      18F6527
>>      18F6585
>>      18F65J10
>>      18F65J11
>>      18F65J15
>>      18F65J50
>>      18F65J90
>>      18F65K22
>>      18F65K90
>>      18F6620
>>      18F6621
>>      18F6622
>>      18F6627
>>      18F6628
>>      18F6680
>>      18F66J10
>>      18F66J11
>>      18F66J15
>>      18F66J16
>>      18F66J50
>>      18F66J55
>>      18F66J60
>>      18F66J65
>>      18F66J90
>>      18F66J93
>>      18F66K22
>>      18F66K27
>>      18F66K90
>>      18F66K95
>>      18F6720
>>      18F6722
>>      18F6723
>>      18F67J10
>>      18F67J11
>>      18F67J50
>>      18F67J60
>>      18F67J90
>>      18F67J93
>>      18F67K22
>>      18F67K90
>>      18F8310
>>      18F8390
>>      18F8393
>>      18F83J11
>>      18F83J90
>>      18F8410
>>      18F8490
>>      18F8493
>>      18F84J11
>>      18F84J90
>>      18F8520
>>      18F8525
>>      18F8527
>>      18F8585
>>      18F85J10
>>      18F85J11
>>      18F85J15
>>      18F85J50
>>      18F85J90
>>      18F85K22
>>      18F85K90
>>      18F8620
>>      18F8621
>>      18F8622
>>      18F8627
>>      18F8628
>>      18F8680
>>      18F86J10
>>      18F86J11
>>      18F86J15
>>      18F86J16
>>      18F86J50
>>      18F86J55
>>      18F86J60
>>      18F86J65
>>      18F86J90
>>      18F86J93
>>      18F86K22
>>      18F86K27
>>      18F86K90
>>      18F86K95
>>      18F8720
>>      18F8722
>>      18F8723
>>      18F87J10
>>      18F87J11
>>      18F87J50
>>      18F87J60
>>      18F87J90
>>      18F87J93
>>      18F87K22
>>      18F87K90
>>      18F96J60
>>      18F96J65
>>      18F97J60
>>
>>
>>
>>
>> Al bert
>>
>>
>>
>>
>>
>>
>> ----- Original Message ----- 
>> From: "Rob Hamerling" <[email protected]>
>> To: <[email protected]>
>> Sent: Saturday, August 01, 2009 10:13 PM
>> Subject: [jallib] Re: Timer Library?
>>
>>
>>>
>>>
>>> Hi Albert,
>>>
>>> a.faber wrote:
>>>
>>>> registers/bits containing the text "TMR"
>>>> registers/bits containing the text "TxCON" where x = 1..4
>>>
>>> I thought so and have already committed a new wiki. This may not be
>>> exactly what you want/need. If so I'll see your comments!
>>>
>>> BTW there are PIC with more than 4 timers (e.g. 18f87K90).
>>>
>>> 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