Author: sebastien.lelong
Date: Sat Dec 20 01:26:24 2008
New Revision: 625
Modified:
trunk/unvalidated/include/peripheral/adc/adc_hardware.jal
Log:
conversion time => acquisition time, renaming variable
Modified: trunk/unvalidated/include/peripheral/adc/adc_hardware.jal
==============================================================================
--- trunk/unvalidated/include/peripheral/adc/adc_hardware.jal (original)
+++ trunk/unvalidated/include/peripheral/adc/adc_hardware.jal Sat Dec 20
01:26:24 2008
@@ -60,7 +60,7 @@
-- local variables
var volatile byte _adcon0_shadow = 0
-var volatile byte _adc_conversion_time
+var volatile byte _adc_acquisition_time
-- Does an AD conversion with low resolution (8 bit) on the selected
channel
@@ -71,7 +71,7 @@
else
ADCON0 = _adcon0_shadow | ((adc_chan & 0x07) << 3) -- setup
multiplexer
end if
- delay_10us(_adc_conversion_time) -- wait acquisition time
+ delay_10us(_adc_acquisition_time) -- wait acquisition time
ADCON0_GO = true -- start conversion
while ADCON0_GO loop end loop -- wait till conversion
finished
adc_byte = ADRESH -- read high byte
@@ -189,7 +189,7 @@
-- calculate AD-conversion time in 10 usec units
-- an extra 10 usec is added to ensure the minimum acquistion time
const adc_conversion_delay = (10 + 15 + (adc_hardware_rsource / 1_000
)) / 10
- _adc_conversion_time = adc_conversion_delay
+ _adc_acquisition_time = adc_conversion_delay
end procedure
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---