Blinkinlabs / ch554_sdcc

CH554 software development kit for SDCC
295 stars 70 forks source link

Fix ADC_CFG in ADCInit() and correct comments. #47

Closed limingjie closed 1 year ago

limingjie commented 1 year ago

Fix #46.

  1. Correct the ADC_CFG set statement in ADCInit().
ADC_CFG = (ADC_CFG & ~bADC_CLK) | speed;
  1. Fix the comment according to CH554 datasheet.

ADC reference clock frequency selection bit 0: Slow clock. 384 Fosc cycles required for each ADC; 1: Fast clock. 96 Fosc cycles required for each ADC

cibomahto commented 1 year ago

Thanks!