how pass ADC contents to Timer/Counter
I write from Italy, so excuse my grammar mistake...
I' ve already a nice question for you...
How can I pass the contents of ADC's registers (ADCH and ADCL in
particular) to Timer/Counters' OCRs (Output Compare Registers) directly
(not using RAM storage)?
The ADC registers don't appear to be directly available to BasicX
code, but you can do this:
dim iX as integer
iX = GetADC(pin) ' get 10-bit ADC conversion
register.OCR1AH = iX \ 256 ' set high byte
register.OCR1AL = iX mod 256 ' set low byte