| Electronic Components Datasheet Search |
|
SNAD01C Datasheet(PDF) 23 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SNAD01C Datasheet(HTML) 23 Page - SONiX Technology Company |
|
23 / 27 page ![]() SNAD01C 8-CHANNEL 8-BIT ADC 9.1. Program 1: Set Configuration of SNAD01C ;; Setup Configuration of SNAD01C ;; ;; With Pull-Low, use “RF” pin connected external voltage. (PH=0, PL=1, RF=0,MB=1) ;; ;; CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 ;; Analog/Digital: B A A D D D A A :B, battery detect ;; Wakeup: X X X NO YES YES X X ;; SNC520 program include def.h START: mov a #1111b mov p2s a mov a #0000b mov p2 a mov p2State #0 @Set_Control_Reg #0, #1, #0, #1 ;; Set Control Registers @Set_Attrib #0, #1, #1, #0, #0, #0, #1, #1 ;; Set Chan Analog/Digital @Set_Wakeup #0, #0, #0, #0, #1, #1, #0, #0 ;; Setup Wakeup function 9.2. Program 2: Read ADC result from Channel 1 ;; Inherit from program 1 ;; 8-bit ADC result of channel 1 in ( ad_out_h, ad_out_l) ;; ad_out_h is bit7~bit4, ad_out_l is bit3~bit0 @Read_ADC #0, #0, #1 ;;get ADC result from Ch1 in ( ad_out_h, ad_out_l) … … 9.3. Program 3: Read Digital Input data from Ch4, Ch3, CH2 ;; Inherit from program 1 ;; After Reading, ;; Port_h.0 = Input of Ch4 ;; Port_l.3 = Input of Ch3 ;; Port_l.2 = Input of Ch2 @Read_Port ;; 8-bit Data (port_h, port_l) … … 9.4. Program 4: Power-down SNAD01C and Host, and Wake-up ;; Inherit from program 1 ;; Enter Power-down Mode (0) @Set_Control_Reg #0, #1, #0, #0 ;; Set Control Registers RF and MB is 0 @Power_Down_0 ;;SNAD01C enters power-down Mode (0) end ;; HOST (SNC520) enter power-down … … Version: 1.5 July 31, 2003 23 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |