Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Jason.Regnier

Pages: [1]
1
Programming / Editing the Acquisition Time in the appcfg.c
« on: April 04, 2013, 10:05:26 AM »
Hello all,

I would like to slow down the ADC Acquisition rate of my SBC65EC board in the c code. I found the settings i need to change in the appcfg.c file but not sure how to change it.

Code: [Select]
        0x2e, // xxxx x110 - Fosc/64 clock = 1.6us @ 40MHz
                 // xx10 1xxx - 12 Tad = 12 x 1.6 = 19.2uS conversion time
                 // 0xxx xxxx - Left justified

I know that I need to change bits 4-6 it doesn't make sense to me since I would like to change the Acquisition rate to 32uS and can't see how to fit 14 (32/1.6 = 14) into 3 bits. any help would be greatly appreciated. Thank you

Pages: [1]