| Electronic Components Datasheet Search |
|
SIG102 Datasheet(PDF) 19 Page - Yamar Electronics Ltd. |
|
|
|||||||||||||||||||||||||||||
SIG102 Datasheet(HTML) 19 Page - Yamar Electronics Ltd. |
|
19 / 38 page ![]() Data may be changed without notice - Proprietary information of Yamar Electronics Ltd. © 2020-2022 Yamar Electronics Ltd. 19 DS-SIG102 R 0.88 www.yamar.com Tel: +972-3-5445294 Fax: +972-3-5445279 4.4.2 ADC Write and Read operation An ADC conversion starts by performing the WRITE-REG command (locally or remotely, see 5.2) to the ADC_L_X ADC_H_X registers. When the conversion is completed, the results are stored in the corresponding ADC register. Users can retrieve the last ADC conversion by sending a READ-REG command to a specific ADC channel address. When reading from the ADC_X_H address, the SIG102 replies with a single byte of higher nibble conversion result (ADC conversion[11:4]). When reading from ADC_X_L, the SIG102 replies with the full word conversion result (2 bytes, ADC_L_X followed by ADC_H_X). ** Note - Reading for inactive ADC channel address will result in no response message from the SIG102 device. REG_35 - WRITE/READ ADC ALL (Address 0x35) 4.4.2.1 To simplify ADC write and read operation, the WRITE/READ ADC ALL register allows users to activate a sequentially analog conversion from all active ADC channels and reply with all conversion results within one message. By performing the WRITE-REG command to REG_35, a sequentially analog conversion from each one of the active ADC pin is being made. By performing the READ-REG command, the SIG102 returns with 2 bytes conversion results per active analog IOs, starting from low IO index to high IO index (Maximal 2 X 8 = 16 bytes). Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R/W [0] R/W [0] R/W [0] R/W [0] R/W [0] R/W [0] R/W [0] R/W [0] WRITE-READ-ADC-ALL EXAMPLE 5 SIG102 IOs 0, 3, and 7 are configured as analog inputs. To enable a sequentially ADC conversion of ADC channel 0, 3, and 7, a WRITE-REG to 'ADC Read/Write All' register is performed (The write data byte is ignored). Upon receiving the WRITE-REG command, the SIG102 will start an ADC conversion starting from channel ADC 0 and ending at channel ADC 7. Then, perform a READ-REG command from the 'ADC Read/Write All' register. The SIG102 response with ADC0, ADC3 and ADC7 conversion results: 0x60, 0x35, 0x10, 0x00, 0xF0, and 0x1F (for instance) as follows: 1 st byte 2 nd byte 3 rd byte 4 th byte 5 th byte 6 th byte 0x60 0x35 0x10 0x00 0xF0 0x1F IO 0 ADC_L IO 0 ADC_H IO 3 ADC_L IO 3 ADC_H IO 7 ADC_L IO 7 ADC_H ADC0 - 0x356 = 0.68V ADC3 - 0x001 = 0.805mV ADC7 - 0x1FF = 0.411V 5 SIG102 I/Os settings and control Setting and controlling each IO is made by WRITE-REG and READ-REG operations from/to the IO control registers, either locally using the command mode (HDC pin required), or remotely over the powerline from a SIG102 Master device using dedicated PLC commands (see 5.2). Table 10 described the IO control registers summary. Table 10 - IO Control register summary Register Address R/W Register name Function 0x10 r/w PWM_delay_0 PWM IO 0 delay period configuration 0x11 r/w PWM_delay_1 PWM IO 1 delay period configuration 0x12 r/w PWM_delay_2 PWM IO 2 delay period configuration 0x13 r/w PWM_delay_3 PWM IO 3 delay period configuration 0x14 r/w PWM_delay_4 PWM IO 4 delay period configuration 0x15 r/w PWM_delay_5 PWM IO 5 delay period configuration 0x16 r/w PWM_delay_6 PWM IO 6 delay period configuration 0x17 r/w PWM_delay_7 PWM IO 7 delay period configuration 0x18 r/w PWM_duty_0 PWM IO 0 duty cycle configuration 0x19 r/w PWM_duty_1 PWM IO 1 duty cycle configuration 0x1A r/w PWM_duty_2 PWM IO 2 duty cycle configuration 0x1B r/w PWM_duty_3 PWM IO 3 duty cycle configuration |
|
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 |