in 40x1 we have calibadc.. i don't know to manipulate the codes after it.. can anyone show my any example? letsay
main:
calibadc
readadc 0,b0
'the code here will be the processing of the data
let b1 = b0*5/255
'then codes here is to show the data on screen
serout bla bla bla.....
goto main
if the voltage ref is exactly around 5, so i can always use b0*5, but when the ref down to 4 or something, how do i manipulate that expression to something that times to the voltage ref all the time? and how calibadc works here? and i know its about 0.6v testing, but the way we can manipulate the codes makes me dizzy on howto...
sorry for my english
main:
calibadc
readadc 0,b0
'the code here will be the processing of the data
let b1 = b0*5/255
'then codes here is to show the data on screen
serout bla bla bla.....
goto main
if the voltage ref is exactly around 5, so i can always use b0*5, but when the ref down to 4 or something, how do i manipulate that expression to something that times to the voltage ref all the time? and how calibadc works here? and i know its about 0.6v testing, but the way we can manipulate the codes makes me dizzy on howto...
sorry for my english