External Peripherals: Interfacing

Size: px
Start display at page:

Download "External Peripherals: Interfacing"

Transcription

1 CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 SRIA COMMUNICATION SRIA DATA TRANSMISSION WITH UART xternal Peripherals: Interfacing UART INTRFAC This interface transfers data asynchrously (clock is t transmitted, transmitter and receiver use their own clocks). Data communication: RXD (receive pin), TXD transmit pin). The FT2232 chip inside the Nexys-4 board handles the USB communication with a computer. Format of a Frame: Start bit ( ), to 9 data bits (SB transmitted first), optional parity bit, and a stop bit ( ). Micro USB FT2232 Transmitter: Simple design that transmit the data frame at the Baud rate (or bit rate in bps). Receiver: It uses a clock signal whose frequency is a multiple (usually 6) of the incoming data rate. TXD RXD Artix-7 FPGA C4 (RXD) D4 (TXD) Baud rate clock TXD DO D D2 D3 D4 D5 D6 D7 stop DIGITA SYSTM: UART TRANSMITTR (FSM + Datapath circuit) For a baud rate of 96 bps, the Baud rate clock is 96 Hz. N = 96 = 46. This number changes according to the ns desired baud rate. Counters: = Q Q+. =sclr= Q. Note that the way the counters are designed, once the maximum count is reached, asserting the enable to resets the count to. C Q FSM TXD R R so s_ SW RIGHT SHIFT RGISTR din resetn= S TXD TXD R, R TXD resetn clock Q sclr zc counter to 7 Q 3 C sclr Q counter to N- n zc zc C (C ) TXD so C (C C+) If max count is reached, C= makes C= START bit zc C (C C+) C (C ), R DATA bits Q (Q Q+) Q (Q ) TXD If max count is reached, Q= makes Q= C (C ) zc C (C C+) STOP bit Instructor: Daniel lamocca

2 ODATA_RG CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 SPI (ACCROMTR) SPI INTRFAC Simple 4-wired synchrous (clock is transmitted) serial interface. SPI logic signals: SCK: Serial clock. Generated by Master. MOSI: Master Output, Slave Input. Generated by Master. MISO: Master Input, Slave Output. Generated by Slave. /CS: Chip select (or Slave Select). Generated by Master. Messages are supported that are multiple of bits. Clock polarity (CPO) and Phase (CPHA): /CS ADX362 MOSI MISO /CS SCK Slave Artix-7 FPGA Nexys-4 DDR F4 5 D5 F5 Master SCK (CPO=) SCK (CPO=) MOSI/MISO (CPHA=) MOSI/MISO (CPHA=) MSB or SB CPO = : Base value of SCK is. CPHA=: Data is captured on rising edge, data is output on falling edge. CPHA=: Data is captured on falling edge, data is output on rising edge. CPO = : Base value of SCK is. CPHA=: Data is captured on falling edge, data is output on rising edge. CPHA=: Data is captured on rising edge, data is output on falling edge. SB or MSB It is commonly used for short distance communications within embedded systems. Microcontrollers and FPGA designs use SPI to communicate with internal/external peripherals. arge variety of SPI-capable peripherals available: sensors (e.g.: temperature, pressure), ADCs, DACs, touchscreens, memories, CDs, SD cards. ACCROMTR ADX362 This 3-axis MMS device operates as a SPI slave device. We read/write data via a register-based interface: we can write/read a byte or many bytes per bus transaction. ADX362 parameters (range, resolution, ODR are selectable): Range: 2g (default at reset), 4g, g. Resolution: mg/sb (default at reset), 2 mg/sb, 4 mg/sb Output data rate (ODR): Hz. Default at reset: Hz. Output resolution: 2 bits. Representation: signed. CPO =, CPHA =. Many SPI devices work very similarly, although we need to comply with specific timing parameters. Accelerometer: Basic Controller (code available here) Operation: We first configure the appropriate ADX362 registers and then proceed to read -bit registers. A simple operation mode is listed here. Refer to the ADX362 datasheet for a complete list of registers and operation modes. Reset the ADX362. Write x52 on SOFT_RST (xf) register. Activate measurement mode. Write x2 on POWR_CT (x2d) register. Read any -bit register (one per bus transaction). See ADX362 datasheet for complete list. The basic controller is depicted on the right. The block wr_reg_adxl362 is the most important: it handles the SPI communication based on address, data and write/read decision. Asserting the signal initiates a transaction. When the operation is completed, the signal is asserted for one clock cycle. If reading data, it appears on odata. A new transaction can be ed on the next cycle after =. resetn clock sel 2 FSM _odata SCK_T wr_reg_adxl362 wr_rd odata address data /CS MOSI MISO SCK D _odata Q 2 Instructor: Daniel lamocca

3 sclrq Q sclrt T CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 FSM: It issues commands to configure the 2 ADX362 registers and then read (cyclically) from one of four -bit ADX362 registers (selected by the sel input). Data is fetched on the output register. Here, we can read the low-precision -bit X, Y, Z measurements (x, x9, xa) and the Status Register (xb). wr_reg_adxl362: This circuit handles the SPI communication with the ADX362. The user provides address, data, and read/write. Then, a read/write SPI transaction is executed. At every transaction, we write or retrieve bits of data. When writing to the ADX362, 3 bytes are transmitted: command address data. When reading from the ADX362, 2 bytes are transmitted command address, and byte is read (data) and placed on odata. Circuit Design: It involves implementing the SPI protocol and complying with the ADX362 timing parameters (see datasheet): C SS (/CS Setup Time): ns t CSH (/CS Hold Time): 2 ns t CSD (/CS Disable Time): 2 ns t SU (Data Setup Time) = t HD (Data Hold Time): 2 ns f SCK: 2.4 (only when using FIFO) KHz. t HIGH (SCK High Time) = t OW (SCK ow Time) = 5 ns. Note that these times only constrain the duty cycle when using large frequencies. The maximum frequency is MHz. SCK: t defined by the standard (usually a few MHz). This is specified by the Slave Device (ADX362: f SCK KHz). This design uses a free running SCK. To comply with the timing parameters: T SCK-(t CSD+t CSH) C SS T SCK 2 ns (f SCK 3.57 MHz). For T SCK=2 ns, we have SCK_T = 2 (at clock= MHz) as the minimum possible value. To display data on Ds or 7-segment displays, you need an appropriate refreshment rate. We can choose T SCK= ms (f SCK= KHz) SCK_T= 6. Since there are 24 SCK periods in a reading transaction, data is refreshed at 24 ms per sample. FSM_SCK: It generates a free running clock of period SCK_T and 5% DC along with rising and falling edge detectors. _odata address x resetn= S address xf data x52 wr_rd, address x2d data x2 wr_rd, data xxx wr_rd, address x9 S6 sel address xa address xb wr_rd address data i a d xa xb write read command FT FT FT i d a o FSM_MAIN 2 2 s o FSM_SCK Q FT counter to SCK_T/2- din MISO odata MOSI SCK /CS FSM_SCK S resetn= T, sclrt SCK T, sclrt SCK (T ) T (T T+) (T ) T Q T, sclrt (T T+) (T ) counter to 7 wr_reg_adxl362 3 Instructor: Daniel lamocca

4 CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 FSM_MAIN: handles the SPI communication and complies with the ADX362 timing parameters. Command, address, data (MSB is sent first), same when reading. Note that T CSD = T CSH = 2 (2 ns). To comply with the timing parameters, we always wait until the last falling edge in a reading or writing cycle, then wait for T CSH cycles, set /CS= for T CSD cycles and then we are back in State S for a new transaction. Note how we embed the counters for qt CSD and qt CSH inside the FSM. Other approaches do t have a free running SCK, but instead they only activate it when /CS=. This approach might make the controlling of the timing parameters simpler (depending on the timing parameters). S /CS resetn= s 2 s i, a, d i d Q Q, sclrq o Q Q, sclrq S6 Q S7 Q, sclrq s qt CSH =T CSH - qt CSH qt CSH + qt CSH a S /CS Q Q, sclrq qt CSD =T CSD - qt CSD qt CSD + qt CSD S 4 Instructor: Daniel lamocca

5 CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 I 2 C (TMPRATUR SNSOR) I 2 C (Inter-Integrated Circuit) INTRFAC Simple 2-wired synchrous (clock is transmitted) serial interface. I 2 C logic signals: SC: Serial clock. Generated by Master, defined by the Slave device. The standard specifies a Fast Mode (up to 4 KHz), a High Speed Mode (up to 3.4 MHz), and an Ultra-Fast Mode (up to 5 MHz). SDA: Bi-directional serial data. In general, SC and SDA are open-drain. There can be one Master and many Slaves. The Master device puts the slave address on the bus, and the slave device with the matching address ackwledges the Mater. Slave Address: Unique identifier of a device. 7-bits wide. Communication on the I 2 C bus: SC It s when the master puts the START condition (S) on the bus (a high-to-low transition on SDA while SC is high). The bus is considered to be busy until the Master puts a STOP condition (P) on the bus (a low-to-high transition on SDA while SC is high). I 2 C data: Transfed in -bit packets. There is restriction to the number of bytes transmitted per data transfer. ach byte transfed must be followed by an ackwledge signal (ACK). ACK () is generated by the Slave. After a START condition (S), the Master writes the 7-bit Slave Address followed by a Read/Write bit, then ACK. Then, the Master writes/reads bytes of data, each byte followed by an ACK. When writing, after the last written byte (followed by ACK), data transmission is terminated by the Master with a STOP condition (P). When reading, only on the last byte, the Master must generate a NACK (Not ackwledge) bit, and then a STOP condition (P). The Master can also generate a repeated START condition (Sr) without first generating a STOP condition (P) to signal that the bus is still busy. Data bits are read on the SC rising edge. We must comply with the Slave device timing parameters: t SU:DAT, t HD:DAT, t SU:STA, t HD:STA, t SU:STO. Unlike a flip flop, t HD:DAT (hold time) is defined as the time the data bit should be on the bus after SC is high (i.e., after the falling edge). S ADT742 Slave SC SDA 3.3v Artix-7 FPGA Nexys-4 DDR C4 C5 Master P SDA A6 A5 A4 A3 A2 A A R/W ACK D7 D6 D5 D4 D3 D2 D D ACK SDA A6 A5 A4 A3 A2 A A R/W ACK D7 D6 D5 D4 D3 D2 D D NACK SC SDA t HD:STA t HD:DAT t SU:DAT A3 A2 A A R/W ACK D7 D6 D5 D4 D3 D2 D I 2 C is commonly used for attaching lower-speed devices to processors and microcontrollers in short-distance, intra-board communication. arge variety of I 2 C-capable peripherals available: sensors (e.g.: temperature, acceleration, pressure), ADCs, DACs, touchscreens, memories, CDs, SD cards. TMPRATUR SNSOR ADT742 This high accuracy digital temperature sensor operates as an I 2 C slave device. We read/write data via a register-based interface: we can write/read a byte or two bytes per bus transaction. ADT742 parameters (resolution is selectable): Output resolution: 3 bits (default at reset), 6 bits. Representation: FX signed. Resolution:.625 C per SB (3-bit mode, default at reset),.725 C per SB (6-bit mode). 6-bit mode: FX Format [6 7]. Temperature ( C): 25 b i= b i 2 i 3-bit mode: FX Format [3 4]. This is just the 3 MSBs of the 6-bit result. Temperature ( C): 22 b 2 + i= b i 2 i According to the formulas, the temperature range is [ 256 C, 256 C). However, in practice the ADT742 is guaranteed to measure temperature between -4 C and 5 C. Slave Address: A A. A A bits are configurable. Nexys-4 DDR-Board: A A = Slave Address: x4b. Temperature Sensor: Basic Controller (code available here) Operation: We first configure the appropriate ADT742 registers and then proceed to read -bit registers. A simple operation mode is listed here. Refer to the ADT742 datasheet for a complete list of registers and operation modes. Configure the 6-bit mode. Write x on CONFIG (x3) register. Read any -bit register (one per bus transaction). 2 7 D ACK t SU:STA Sr A6 2 4 A5 t SU:STO A4 5 Instructor: Daniel lamocca

6 ODATA_ ODATA_H CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 The Basic Controller interacts with the following registers: (refer to the ADT742 datasheet for a complete list of registers). Reg. Address Name Reg. Address Name x TMP_H x3 CONFIG x TMP_ x2 STATUS xb ID 3-bit mode: This requires to write x on CONFIG register. The 3-bit data will be located in the 3 MSBs of the 6- bit sequence: TMP_H TMP_. Reading from the ID register results in xcb (manufacturer s setting) Communication Protocol: This protocol runs on top of I 2 C. Writing/reading here refer to the process of writing/reading to/from a register. This is a bit different from writing/reading data onto the I 2 C bus (what the I 2 C protocol specifies). RA: ADT742 internal Register Address of ADT742. AD: Slave (ADT742) I 2 C Address (x4b). NACK: Not Ackwledge (), set by Master, ACK: Ackwledge (). W: Write bit (). R: Read bit (). For AD, RA, DATA, MSB is sent first. Single-byte Write Sequence: Master S AD (7-bit) W RA (-bit) DATA (-bit) P Slave ACK ACK ACK Single-byte Read Sequence: Master S AD (7-bit) W RA (-bit) Sr AD (7-bit) R NACK P Slave ACK ACK ACK DATA (-bit) The basic controller is depicted on the right. The block wr_reg_adt742 is the most important: it handles the I 2 C communication based on address, data and write/read decision. Asserting the signal initiates a transaction. When the operation is completed, the signal is asserted for one clock cycle. If reading data, it appears on odata. A new transaction can be ed on the next cycle after =. resetn clock sel FSM _h _l SC_T wr_reg_adt742 wr_rd odata address data _h _l FSM: It issues commands to configure one ADT742 register (CONFIG) and then read (cyclically) from two of four - bit ADT742 registers (selected by the sel input). Data is fetched on the output registers. Here, we can read the STATUS and ID registers (x2, xb), or TMP_H and TMP_ (x, x). wr_reg_adt742: This circuit handles the I 2 C communication with the ADT742. The user provides address, data, and read/write. Then, a read/write SPI transaction is executed. At every transaction, we write or retrieve bits of data. Circuit Design: It involves implementing the I 2 C protocol and satisfying the ADT742 timing parameters (see datasheet): t SU:DAT (Data Setup Time):.2 us. t HD:DAT (Data Hold Time):.3 us. f SCK 4 KHz. t HD:STA (Hold Time Start Condition):.6 us. Time SC must be after SDA falling edge. t SU:STA (Setup Time Start Condition):.6 us. Time SC must be before SDA falling edge. t SU:STO (Setup Time Stop Condition):.6 us. Time SC must be before SDA rising edge. t BUF (Bus-Free Time Start and Stop Condition):.3 us. For f SC 4 KHz (T SC 2.5 us), we have SC_T 25 (at clock = MHz). To display data on Ds or 7-segment displays, you need an proper refreshment rate. We pick T SCK= ms (f SCK= KHz) SCK_T=5 3. There are about 35 SC periods in a reading transaction, thus data is refreshed at 35 ms per sample. FSM_SC: It generates a clock of period SC_T and 5% DC along with rising and falling edge detectors. It also issued a delayed falling edge detection signal : This is to allow data to be kept for t HD:DAT after the falling edge. The clock stops after the STOP condition (P) is issued. er address x2 _l SC SDA resetn= S address x3 data x wr_rd, data xxx wr_rd, address xb _h sel data xxx wr_rd, S6 sel er er address x er er address x er er 6 Instructor: Daniel lamocca

7 sclrq Q swr sclrt T CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 wr_rd address data swr i a d wr x4b FT FT FT i d a o 2 2 s FSM_MAIN Q counter to 7 _scl stop_scl wr so o so _scl stop_scl SDAo SDAoe st dn counter to SC_T/2- Q FSM_SC FSM_ACK T FT din SDAi wr_reg_adt742 SC odata SDA FSM_SC S resetn= SC T, sclrt _scl SC T, sclrt stop_scl SC T T T, sclrt (T ) (T T+) (T ) T=T HD - (T T+) (T ) FSM_ACK: It handles the detection of the Ackwledge bit (ACK), which is generated by the Slave. This operation is repeated at many points in the design, thus we decided to have a separate FSM. FSM_ACK S resetn= st SDAi ACK dn 7 Instructor: Daniel lamocca

8 CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 FSM_MAIN: It handles the I 2 C communication and complies with the ADT742 timing parameters. Note that T BUF = 3 (3 ns). Also, data is kept for t HD:DAT after the falling edge of SC (that is why we have the signal z Fhd, which is issued after t HD:DAT). Note that when the Slave is writing data, SDAoe=. S S START condition and 7-bit Slave Address R/W= Write Register Address resetn= S stop_scl, SDAo SDAo so, s i _scl,i, a, d, wr Q Q, sclrq a a Q Q, sclrq, st SDAo st SDAoe dn SDAo so, s SDAoe dn S S6 ACK ACK S Write Data S STOP condition if = SC will stay at '' because stop_scl='' right when ='' Wait t BUF before a new transfer can be ed S6 S9 SDAoe so, s 2 d Q Q, sclrq, st S7 S SDAoe dn SDAo t() stop_scl SDAo SDAo qt BUF =T BUF - qt BUF SDAo, _scl, i, S ACK S qt BUF qt BUF + Slave Address x4b R/W= Read Data Wait until falling edge NACK is forced S to '' so we can exit S SDAoe so, s i Q Q, sclrq S SDAo st SDAoe dn SDAoe o Q Q, sclrq SDAoe SDAo wr, swr ACK Instructor: Daniel lamocca

9 ndc AUD_PWM ndc ndc ndc sclrq Q ndc ndc CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 PUS-WIDTH MODUATION (PWM) DFINITION We generate a square wave where we control the Duty Cycle. Duty Cycle is specified as a percentage: from to %. PWM can be used to vary the average voltage on an output pin. This can be useful (in lieu of a DAC) to control the brightness of an D, speed of a DC motor, volume of a tone in a speaker, etc. DIGITA SYSTM FOR PWM (code available here) TPWM (Period of PWM signal in units of T clock ): This is a parameter in the VHD code. TPWM > 2 T PWM = TPWM. TPWM f clock S DC DCq _DC FSM Q sclr counter to TPWM- opwm _DC = resetn= Q, sclrq _DC opwm DCq TPWM [,TPWM-] (Q ) opwm, Q (Q Q+) _DC, opwm DCq= For f clock = MHz: TPWM = 5 f PWM = 2 KHz TPWM = 5 f PWM = 2 KHz opwm, Q (Q Q+) DC (Duty Cycle): Input signal with ndc bits. ndc = log 2 [TPWM + ] DC [, TPWM]. Note that DC is t specified from to %, but rather from to TPWM. Note that the step of the DC depends on f clock. An external circuit can retrieve the Duty Cycle in standard terms (-%) and convert it to to TPWM. (Q ) Q, sclrq _DC Q=DCq- opwm (Q Q+) Q=TPWM- Q TRI-COOR DS RGB color can be controlled by varying (via PWM) the brightness of a Red, Green, and TPWM TPWM Blue Ds. We want to control the DC of each color component using NB=4 bits. So, 4 we need to map a signal from to 2 NB R - to a signal from to TPWM. Mapping formula: PWM RD DC( TWPM) = TPWM 2 NB DC( 2NB ) TPWM DC( 2NB ) 2 NB 4 G PWM GD DIGITA CIRCUIT (code available here) Mapping circuit: The approx. formula optimizes hardware: we multiply and then drop NB SBs. DC (-TPWM) never reaches TPWM, but the approx. is good eugh. 4 PWM frequency: 2 KHz (TPWM=5, f clock = MHz) provides a good color B PWM BD variation. A high frequency breaks the linearity between the brightness and the DC. We can use more bits per color component, but we need more input signals. For NB=4, refer to hex tables (higher nibble). MONO AUDIO OUTPUT Nexys-4 (DDR) Board: An analog low pass filter (connected after AUD_PWM) turns a PWM signal with varying DC (DC goes from to % and back) into a sinusoid. Use NB= bits. DIGITA CIRCUIT (code available here) CT Shaded circuit: It generates a square wave and it can be CT 2 frq+6 - UT connected to a buzzer or speaker, though we can only vary TPWM 3 2 DC ( volume). Only frequency can change the tone, i.e., we 3 TM - need a new circuit where TWPM is an input signal. PWM P P TM Q sclr CT: It produces a varying -bit DC ( 255, ). This SD TPWM AUD_SD 255 allows the integrator to generate a sinusoidal wave. The variation rate is controlled by frq, i.e., we can pick from sinusoidal frequencies. AUD_PWM: Open-drain output. AUD_SD: Analog filter shutdown input (via the AD592 opamps). TPWM = ( KHz). frq 3 frq 3 9 Instructor: Daniel lamocca

10 CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 PUS DNSITY MODUATION (PDM) DFINITION Popular in mobile devices, only bit is required. -bit signal is oversampled. The amplitude of a signal is represented by the relative density of the pulses: the closer the pulses are, the larger the amplitude. Unlike PWM, the frequency of the pulses is t fixed. A PDM signal can be generated from an analog signal by using a sigma-delta modulator. Once PDM data is obtained, the analog signal can be recovered by passing the signal through an analog low-pass filter: + PDM signal Analog owpass Filter Reconstruction filter If we want to get the PCM (pulse-code modulation)-coded signal to apply digital signal processing operations, we require a digital decimation filter. The figure depicts a PDM signal oversampled by a factor of N (over the Nyquist rate). The decimation filter outputs a signal x[n] (6 bits per sample) sampled at the Nyquist rate. To recover the analog signal from x[n], a DAC (digital-to-analog converter) is required. + PDM signal Digital Decimation 6 Filter F PDM / N F PDM oversampled signal by a factor of N N=64,2 MICROPHON ADMP42: MMS Microphone with PDM output CK: 3 MHz. Recommended: 2.4 MHz. DATA: PDM signal (oversampled data) /R: eft right stereo input control. /R=: Data captured on CK rising edge. /R=: Data captured on CK falling edge. Many MMS microphones (e.g.: ADMP52, MP34DT2) feature a similar synchrous interface. ADMP42: Synchrous interface. Make sure to comply with the timing parameters (see ADMP42 datasheet). CK /R S= DATA pulse pulse /R S= DATA pulse pulse Once PDM data is obtained, the audio signal can be played back by passing the signal through an analog low-pass filter. AUDIO OUT Nexys-4/Nexys-4 DDR: The on-board audio jack is driven by an analog low-pass filter. The input then can be a PDM or PWM signal. The cut-off frequency is about 2 KHz. Stereo output is t supported. AUD_PWM: Open-drain output. AUD_SD: Analog filter shutdown input (via the AD592 opamps). AUDIO CAPTUR AND PAYBACK ON TH NXYS-4 DDR BOARD The figure depicts the connection between the MMS microphone, the Artix-7 FPGA, and the mo audio output. DIGITA CIRCUIT As stereo output is t supported, we only retrieve a mo audio input from the ADMP42 microphone (e.g. /R = ). Main frequency (Nexys-4 DDR Board): f clock = MHz, T clock = ns. ADMP42 CK DATA /R S Artix-7 FPGA Nexys-4 DDR SCK PDM_IN J5 H5 A R F5 D2 AUD_PWM AUD_SD Instructor: Daniel lamocca

11 sclrt T sclrt T RAM_address RAM_we sclrt T CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 Basic approach The figure depicts a simple circuit that reads data in a shift register and immediately outputs the data. The rate at which data is shifted in and out is given by SCK. Be aware of feedback when using this circuit. FSM_SCK: It generates a free running clock of period SCK_T and 5% DC along with rising and falling edge detectors. With an input clock of MHz, we have that: For SCK = MHz SCK_T = 6 9 =. For SCK = 3 MHz SCK_T = For SCK = 2.4 MHz SCK_T = PDM_IN on '' din 6 6 FT FSM_SCK Q AUD_PWM AUD_SD R SCK counter to SCK_T/2- Memory-based approach Here, data is read into the shift register and then stored it in memory. We can then control when we shift data out. We might also store several audio sequences and select when to play them. Data is shifted in and out at the rate given by SCK. Memory: It can store up to ND 6-bit words. Address size: NA = log 2 ND. Total number of bits: ND 6 bits. Duration of the stored sequence: ND 6 SCK_T T clock. For example if ND = 2 and SCK_T=42 we have.766s. To increase the duration, we can increase SCK_T (SCK_T ), or we can increase the memory size. The main control circuit (FSM_MM) varies according to the type of memory used. The memory might t operate at the same frequency or might have different input/output ports than the ones shown. For example: On-chip memory (BlockRAMs inside Artix-7 FPGAs): asy to use. They operate at the same frequency ( MHz), include the I/O ports as in the figure, and behave as a bunch of registers: data requested/written is available on the next clock cycle. But the capacity is limited (~.5 MB in the XCAT Artix-7 FPGA). xternal memories (e.g.: DDR2 RAM, Flash, SRAM): They require a different I/O interface and operating frequency; however, they can hold much more data. The circuit requires a 6-bit shift register, a memory, and two state machines. The FSM_SCK is also depicted. PDM_IN din 6 6 FT in_ramgen ND words 6 6 in out NA address '' en we AUD_PWM AUD_SD FSM_SCK resetn= S T, sclrt (T ) SCK si p p FSM_MM T counter to 5 FSM_SCK Q R ready_out SCK T, sclrt SCK T T (T T+) (T ) (T T+) counter to SCK_T/2- T, sclrt (T ) Instructor: Daniel lamocca

12 CTRICA AND COMPUTR NGINRING DPARTMNT, OAKAND UNIVRSITY C-37: Computer Hardware Design Winter 27 FSM_MM (using BlockRAMs inside Artix-7 FPGAs): Note how we embed the counter for RAM_address inside the FSM. S si resetn= ready_out, AUD_SD si p T (T T+) p T, sc;rt, p (T ) T T, sc;rt si, RAM_we (T T+) (T ) RAM_address= RAM_address=ND- RAM_address RAM_address RAM_address+ RAM_address=ND- RAM_address RAM_address RAM_address+ si p, p RAM_address RAM_address+ 2 Instructor: Daniel lamocca

PWM LED Color Control

PWM LED Color Control 1 PWM LED Color Control Through the use temperature sensors, accelerometers, and switches to finely control colors. Daniyah Alaswad, Joshua Creech, Gurashish Grewal, & Yang Lu Electrical and Computer Engineering

More information

FLD00042 I 2 C Digital Ambient Light Sensor

FLD00042 I 2 C Digital Ambient Light Sensor FLD00042 I 2 C Digital Ambient Light Sensor Features Built-in temperature compensation circuit Operating temperature: -30 C to 70 C Supply voltage range: 2.4V to 3.6V I 2 C serial port communication: Fast

More information

Carbon Dioxide (Tiny CO2) Gas Sensor. Rev TG400 User Manual

Carbon Dioxide (Tiny CO2) Gas Sensor. Rev TG400 User Manual Carbon Dioxide (Tiny CO2) Gas Sensor Rev. 1.2 TG400 User Manual The TG400 measuring carbon dioxide (chemical formula CO2) is a NDIR (Non-Dispersive Infrared) gas sensor. As it is contactless, it has high

More information

INF8574 GENERAL DESCRIPTION

INF8574 GENERAL DESCRIPTION GENERAL DESCRIPTION The INF8574 is a silicon CMOS circuit. It provides general purpose remote I/O expansion for most microcontroller families via the two-line bidirectional bus (I 2 C). The device consists

More information

16-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

16-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection 19-3059; Rev 5; 6/11 EVALUATION KIT AVAILABLE 16-Port I/O Expander with LED Intensity General Description The I 2 C-compatible serial interfaced peripheral provides microprocessors with 16 I/O ports. Each

More information

Beyond-the-Rails 8 x SPST

Beyond-the-Rails 8 x SPST EVALUATION KIT AVAILABLE General Description The is a serially controlled 8 x SPST switch for general purpose signal switching applications. The number of switches makes the device useful in a wide variety

More information

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES DS1307 64 8 Serial Real Time Clock FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100 56 byte nonvolatile

More information

Interfacing to External Devices

Interfacing to External Devices Interfacing to External Devices Notes and/or Reference 6.111 October 18, 2016 Huge Amount of Self-Contained Devices Sensors A-to-D converters D-to-A Memory Microcontrollers Etc We need ability/fluency

More information

3-Channel Fun LED Driver

3-Channel Fun LED Driver 3-Channel Fun LED Driver Description is a 3-channel fun LED driver which features two-dimensional auto breathing mode. It has One Shot Programming mode and PWM Control mode for RGB lighting effects. The

More information

Game Console Design. Final Presentation. Daniel Laws Comp 499 Capstone Project Dec. 11, 2009

Game Console Design. Final Presentation. Daniel Laws Comp 499 Capstone Project Dec. 11, 2009 Game Console Design Final Presentation Daniel Laws Comp 499 Capstone Project Dec. 11, 2009 Basic Components of a Game Console Graphics / Video Output Audio Output Human Interface Device (Controller) Game

More information

DS1803 Addressable Dual Digital Potentiometer

DS1803 Addressable Dual Digital Potentiometer www.dalsemi.com FEATURES 3V or 5V Power Supplies Ultra-low power consumption Two digitally controlled, 256-position potentiometers 14-Pin TSSOP (173 mil) and 16-Pin SOIC (150 mil) packaging available for

More information

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

I hope you have completed Part 2 of the Experiment and is ready for Part 3. I hope you have completed Part 2 of the Experiment and is ready for Part 3. In part 3, you are going to use the FPGA to interface with the external world through a DAC and a ADC on the add-on card. You

More information

IN1307N/D/IZ1307 CMOS IC of Real Time Watch with Serial Interface, 56 Х 8 RAM

IN1307N/D/IZ1307 CMOS IC of Real Time Watch with Serial Interface, 56 Х 8 RAM CMOS IC of Real Time Watch with Serial Interface, 56 Х 8 RAM The IN307 is a low power full BCD clock calendar plus 56 bytes of nonvolatile SRAM. Address and data are transferred serially via a 2-wire bi-directional

More information

17-Output LED Driver/GPO with Intensity Control and Hot-Insertion Protection

17-Output LED Driver/GPO with Intensity Control and Hot-Insertion Protection 19-3179; Rev 3; 3/5 EVALUATION KIT AVAILABLE 17-Output LED Driver/GPO with General Description The I 2 C-compatible serial interfaced peripheral provides microprocessors with 17 output ports. Each output

More information

DS1307ZN. 64 X 8 Serial Real Time Clock

DS1307ZN. 64 X 8 Serial Real Time Clock 64 X 8 Serial Real Time Clock www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100 56

More information

PBM230 series Digital barometer

PBM230 series Digital barometer PBM230 series Digital barometer Features Supply voltage: 1.7 to 5.5V(V DD ) 1.2 to 5.5V(V DDIO ) 300 to 1100 hpa pressure range 8cm altitude resolution (RMS) 2.2ms fastest conversion time Standby current

More information

DS4000 Digitally Controlled TCXO

DS4000 Digitally Controlled TCXO DS4000 Digitally Controlled TCXO www.maxim-ic.com GENERAL DESCRIPTION The DS4000 digitally controlled temperature-compensated crystal oscillator (DC-TCXO) features a digital temperature sensor, one fixed-frequency

More information

FAH4830 Haptic Driver for DC Motors (ERMs) and Linear Resonant Actuators (LRAs)

FAH4830 Haptic Driver for DC Motors (ERMs) and Linear Resonant Actuators (LRAs) FAH4830 Haptic Driver for DC Motors (ERMs) and Linear Resonant Actuators (LRAs) Features Direct Drive of ERM and LRA Motors External PWM Input (10 khz to 50 khz) External Motor Enable/Disable Input Internal

More information

ZKit-51-RD2, 8051 Development Kit

ZKit-51-RD2, 8051 Development Kit ZKit-51-RD2, 8051 Development Kit User Manual 1.1, June 2011 This work is licensed under the Creative Commons Attribution-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.5/in/

More information

16 Channels LED Driver

16 Channels LED Driver 16 Channels LED Driver Description The SN3216 is a fun light LED controller with an audio modulation mode. It can store data of 8 frames with internal RAM to play small animations automatically. SN3216

More information

DS1621. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT

DS1621. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT DS1621 Digital Thermometer and Thermostat FEATURES Temperature measurements require no external components Measures temperatures from 55 C to +125 C in 0.5 C increments. Fahrenheit equivalent is 67 F to

More information

Temperature Sensor and System Monitor in a 10-Pin µmax

Temperature Sensor and System Monitor in a 10-Pin µmax 19-1959; Rev 1; 8/01 Temperature Sensor and System Monitor General Description The system supervisor monitors multiple power-supply voltages, including its own, and also features an on-board temperature

More information

DS1307/DS X 8 Serial Real Time Clock

DS1307/DS X 8 Serial Real Time Clock DS1307/DS1308 64 X 8 Serial Real Time Clock www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid

More information

+Denotes lead-free package. *EP = Exposed paddle. V CC GND AGND AV CC GND I 2 C INTERFACE. -35dB TO +25dB GAIN AUDIO SOURCE AUDIO AMPLIFIER DS4420

+Denotes lead-free package. *EP = Exposed paddle. V CC GND AGND AV CC GND I 2 C INTERFACE. -35dB TO +25dB GAIN AUDIO SOURCE AUDIO AMPLIFIER DS4420 Rev ; 9/6 I 2 C Programmable-Gain Amplifier General Description The is a fully differential, programmable-gain amplifier for audio applications. It features a -35dB to +25dB gain range controlled by an

More information

DS1807 Addressable Dual Audio Taper Potentiometer

DS1807 Addressable Dual Audio Taper Potentiometer Addressable Dual Audio Taper Potentiometer www.dalsemi.com FEATURES Operates from 3V or 5V Power Supplies Ultra-low power consumption Two digitally controlled, 65-position potentiometers Logarithmic resistor

More information

CBM7021 Capacitive Touch Sensor Controller Datasheet Chipsbank Microelectronics Co., Ltd.

CBM7021 Capacitive Touch Sensor Controller Datasheet Chipsbank Microelectronics Co., Ltd. CBM7021 Capacitive Touch Sensor Controller Datasheet Chipsbank Microelectronics Co., Ltd. No. 701 7/F, Building No. 12, Keji Central Road 2, Software Park High Tech Industrial Park, Shenzhen, P.R.China,

More information

Roland Kammerer. 13. October 2010

Roland Kammerer. 13. October 2010 Peripherals Roland Institute of Computer Engineering Vienna University of Technology 13. October 2010 Overview 1. Analog/Digital Converter (ADC) 2. Pulse Width Modulation (PWM) 3. Serial Peripheral Interface

More information

V OUT0 OUT DC-DC CONVERTER FB

V OUT0 OUT DC-DC CONVERTER FB Rev 1; /08 Dual-Channel, I 2 C Adjustable General Description The contains two I 2 C adjustable-current DACs that are each capable of sinking or sourcing current. Each output has 15 sink and 15 source

More information

Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation

Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation Quick Parameter List: 0x00: Device Number 0x01: Required Channels 0x02: Ignored Channels 0x03: Reversed Channels 0x04: Parabolic

More information

IS31FL3190 IS31FL CHANNEL FUN LED DRIVER. Preliminary Information November 2015

IS31FL3190 IS31FL CHANNEL FUN LED DRIVER. Preliminary Information November 2015 1-CHANNEL FUN LED DRIVER GENERAL DESCRIPTION IS31FL3190 is a 1-channel fun LED driver which has One Shot Programming mode and PWM Control mode for LED lighting effects. The maximum output current can be

More information

IS31FL CHANNEL FUN LED DRIVER July 2015

IS31FL CHANNEL FUN LED DRIVER July 2015 1-CHANNEL FUN LED DRIVER July 2015 GENERAL DESCRIPTION IS31FL3191 is a 1-channel fun LED driver which has One Shot Programming mode and PWM Control mode for LED lighting effects. The maximum output current

More information

MT6803 Magnetic Angle Sensor IC

MT6803 Magnetic Angle Sensor IC Features and Benefits Based on advanced magnetic field sensing technology Measures magnetic field direction rather than field intensity Contactless angle measurement Large air gap Excellent accuracy, even

More information

S-35390A 2-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Packages. Seiko Instruments Inc. 1

S-35390A 2-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Packages. Seiko Instruments Inc. 1 Rev.2.4_ 2-WIRE REAL-TIME CLOCK The is a CMOS 2-wire real-time clock IC which operates with the very low current consumption and in the wide range of operation voltage. The operation voltage is 1.3 V to

More information

Stensat Transmitter Module

Stensat Transmitter Module Stensat Transmitter Module Stensat Group LLC Introduction The Stensat Transmitter Module is an RF subsystem designed for applications where a low-cost low-power radio link is required. The Transmitter

More information

CPS131. Data Sheet. Water Resistant Pressure Sensor. Consensic. Preliminary 0.1 January 2013 DAT 0006

CPS131. Data Sheet. Water Resistant Pressure Sensor. Consensic. Preliminary 0.1 January 2013 DAT 0006 Data Sheet Preliminary 0.1 January 2013 DAT 0006 Water Digital Resistant Barometer Pressure Sensor Overview The SiP (System in a Package) solution comprises of a resistive bridge type pressure sensor and

More information

S-35390A H Series FOR AUTOMOTIVE 105 C OPERATION 2-WIRE REAL-TIME CLOCK. Features. Packages. ABLIC Inc., Rev.2.

S-35390A H Series FOR AUTOMOTIVE 105 C OPERATION 2-WIRE REAL-TIME CLOCK. Features. Packages.   ABLIC Inc., Rev.2. www.ablic.com FOR AUTOMOTIVE 15 C OPERATION 2-WIRE REAL-TIME CLOCK ABLIC Inc., 211-218 Rev.2.2_3 The is a 15C operation CMOS 2-wire real-time clock IC which operates with the very low current consumption

More information

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data sheet Supersedes data of 2004 Sep Oct 01. Philips Semiconductors

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data sheet Supersedes data of 2004 Sep Oct 01. Philips Semiconductors INTEGRATED CIRCUITS Supersedes data of 2004 Sep 14 2004 Oct 01 Philips Semiconductors The initial setup sequence programs the two blink rates/duty cycles for each individual PWM. From then on, only one

More information

9-Output LED Driver with Intensity Control and Hot-Insertion Protection

9-Output LED Driver with Intensity Control and Hot-Insertion Protection 19-3058; Rev 3; 3/05 EVALUATION KIT AVAILABLE 9-Output LED Driver with Intensity Control General Description The I 2 C-compatible serial interfaced peripheral provides microprocessors with nine additional

More information

ADC081C021/ADC081C027

ADC081C021/ADC081C027 I 2 C-Compatible, 8-Bit Analog-to-Digital Converter with Alert Function General Description The ADC081C021 is a low-power, monolithic, 8-bit, analog-to-digital converter (ADC) that operates from a +2.7

More information

Low Dropout Regulator with On-Demand Power for DDR Memory VDDQ. Description. Applications. On-Demand Power Control Logic.

Low Dropout Regulator with On-Demand Power for DDR Memory VDDQ. Description. Applications. On-Demand Power Control Logic. Low Dropout Regulator with On-Demand Power for DDR Memory VDDQ PSG2410 DATA SHEET Preliminary Features Configurable On-Demand Power algorithm to adaptively scale regulated output voltage in correlation

More information

onlinecomponents.com

onlinecomponents.com www.sii-ic.com 2-WIRE REAL-TIME CLOCK Seiko Instruments Inc., 2004-2010 Rev.3.0_00 The is a CMOS 2-wire real-time clock IC which operates with the very low current consumption and in the wide range of

More information

Fully Calibrated Temperature Sensor IC

Fully Calibrated Temperature Sensor IC Fully Calibrated Temperature Sensor IC 1 General Description The integrated circuit MS1088 is a fully integrated tested and calibrated digital low power temperature sensor with a typical temperature measurement

More information

MiCo SnP HT-01D HT-01D. Humidity & Temperature Sensor Module. User s Manual. MiCo SnP. 1/16

MiCo SnP HT-01D HT-01D. Humidity & Temperature Sensor Module. User s Manual. MiCo SnP.   1/16 Humidity & Temperature Sensor Module User s Manual MiCo SnP www.micosnp.com 1/16 History Date Description 2013-03-30 Initial Release. (Manual Integration) 2013-08-06 Addition output voltage table 2014-02-27

More information

Two-/Four-Channel, I 2 C, 7-Bit Sink/Source Current DAC

Two-/Four-Channel, I 2 C, 7-Bit Sink/Source Current DAC General Description The DS4422 and DS4424 contain two or four I2C programmable current DACs that are each capable of sinking and sourcing current up to 2μA. Each DAC output has 127 sink and 127 source

More information

Hardware Platforms and Sensors

Hardware Platforms and Sensors Hardware Platforms and Sensors Tom Spink Including material adapted from Bjoern Franke and Michael O Boyle Hardware Platform A hardware platform describes the physical components that go to make up a particular

More information

Two-/Four-Channel, I 2 C, 7-Bit Sink/Source Current DAC

Two-/Four-Channel, I 2 C, 7-Bit Sink/Source Current DAC 19-4744; Rev 1; 7/9 Two-/Four-Channel, I 2 C, 7-Bit Sink/Source General Description The DS4422 and DS4424 contain two or four I 2 C programmable current DACs that are each capable of sinking and sourcing

More information

IS31FL3208A 18-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. August 2018

IS31FL3208A 18-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. August 2018 18-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY August 2018 GENERAL DESCRIPTION is comprised of 18 constant current channels each with independent PWM control, designed for driving LEDs, PWM frequency

More information

ADC081C021/ADC081C027 I 2 C-Compatible, 8-Bit Analog-to-Digital Converter (ADC) with Alert Function

ADC081C021/ADC081C027 I 2 C-Compatible, 8-Bit Analog-to-Digital Converter (ADC) with Alert Function May 5, 2008 ADC081C021/ADC081C027 I 2 C-Compatible, 8-Bit Analog-to-Digital Converter (ADC) with Alert Function General Description The ADC081C021 is a low-power, monolithic, 8-bit, analog-to-digital converter(adc)

More information

FAH4840 Haptic Driver for Linear Resonant Actuators (LRAs)

FAH4840 Haptic Driver for Linear Resonant Actuators (LRAs) FAN4840 Haptic Driver for Linear Resonant Actuators (LRAs) November 2013 FAH4840 Haptic Driver for Linear Resonant Actuators (LRAs) Features Direct Drive of LRA (Linear Resonant Actuator) External PWM

More information

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700:

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: LCTRICAL AN COMPUTR NGINRING PARTMNT, OAKLAN UNIVRSITY C-27: igital Logic esign Winter 28 SYNCHRONOUS SUNTIAL CIRCUITS Notes - Unit 6 ASYNCHRONOUS CIRCUITS: LATCHS SR LATCH: R S R t+ t t+ t S restricted

More information

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 Feb May 02. Philips Semiconductors

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 Feb May 02. Philips Semiconductors INTEGRATED CIRCUITS Supersedes data of 2003 Feb 26 2003 May 02 Philips Semiconductors DESCRIPTION The is a 16-bit I 2 C-bus and SMBus I/O expander optimized for dimming LEDs in 256 discrete steps for Red/Green/Blue

More information

S-35392A 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.2_03

S-35392A 2-WIRE REAL-TIME CLOCK. Features. Applications. Package.  ABLIC Inc., Rev.3.2_03 www.ablicinc.com 2-WIRE REAL-TIME CLOCK ABLIC Inc., 26-216 Rev.3.2_3 The is a CMOS 2-wire real-time clock IC which operates with the very low current consumption in the wide range of operation voltage.

More information

S-35390A 2-WIRE REAL-TIME CLOCK. Features. Applications. Packages. SII Semiconductor Corporation, Rev.4.

S-35390A 2-WIRE REAL-TIME CLOCK. Features. Applications. Packages.  SII Semiconductor Corporation, Rev.4. www.sii-ic.com 2-WIRE REAL-TIME CLOCK SII Semiconductor Corporation, 2004-2016 Rev.4.2_02 The is a CMOS 2-wire real-time clock IC which operates with the very low current consumption in the wide range

More information

PCA9564 Parallel bus to I 2 C-bus controller INTEGRATED CIRCUITS Jun 25. Product data sheet Supersedes data of 2003 Apr 02

PCA9564 Parallel bus to I 2 C-bus controller INTEGRATED CIRCUITS Jun 25. Product data sheet Supersedes data of 2003 Apr 02 INTEGRATED CIRCUITS Supersedes data of 2003 Apr 02 2004 Jun 25 Philips Semiconductors FEATURES Parallel-bus to I 2 C-bus protocol converter and interface Both master and slave functions Multi-master capability

More information

INTEGRATED CIRCUITS. PCA9544A 4-channel I 2 C multiplexer with interrupt logic. Product data sheet Supersedes data of 2004 Jul 28.

INTEGRATED CIRCUITS. PCA9544A 4-channel I 2 C multiplexer with interrupt logic. Product data sheet Supersedes data of 2004 Jul 28. INTEGRATED CIRCUITS Supersedes data of 2004 Jul 28 2004 Sep 29 DESCRIPTION The is a 1-of-4 bi-directional translating multiplexer, controlled via the I 2 C-bus. The SCL/SDA upstream pair fans out to four

More information

CAT bit Programmable LED Dimmer with I 2 C Interface DESCRIPTION FEATURES APPLICATIONS TYPICAL APPLICATION CIRCUIT

CAT bit Programmable LED Dimmer with I 2 C Interface DESCRIPTION FEATURES APPLICATIONS TYPICAL APPLICATION CIRCUIT 16-bit Programmable Dimmer with I 2 C Interface FEATURES 16 drivers with dimming control 256 brightness steps 16 open drain outputs drive 25 ma each 2 selectable programmable blink rates: frequency: 0.593Hz

More information

Project Final Report: Directional Remote Control

Project Final Report: Directional Remote Control Project Final Report: by Luca Zappaterra xxxx@gwu.edu CS 297 Embedded Systems The George Washington University April 25, 2010 Project Abstract In the project, a prototype of TV remote control which reacts

More information

MTS2500 Synthesizer Pinout and Functions

MTS2500 Synthesizer Pinout and Functions MTS2500 Synthesizer Pinout and Functions This document describes the operating features, software interface information and pin-out of the high performance MTS2500 series of frequency synthesizers, from

More information

3.3V regulator. JA H-bridge. Doc: page 1 of 7

3.3V regulator. JA H-bridge. Doc: page 1 of 7 Cerebot Reference Manual Revision: February 9, 2009 Note: This document applies to REV B-E of the board. www.digilentinc.com 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview The

More information

I2C Demonstration Board I 2 C-bus Protocol

I2C Demonstration Board I 2 C-bus Protocol I2C 2005-1 Demonstration Board I 2 C-bus Protocol Oct, 2006 I 2 C Introduction I ² C-bus = Inter-Integrated Circuit bus Bus developed by Philips in the early 80s Simple bi-directional 2-wire bus: serial

More information

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378:

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378: LCTRICAL AN COMPUTR NGINRING PARTMNT, OAKLAN UNIVRSITY C-378: Computer Hardware esign Winter 26 SYNCHRONOUS SUNTIAL CIRCUITS Notes - Unit 6 ASYNCHRONOUS CIRCUITS: LATCHS SR LATCH: R S R t+ t t+ t S restricted

More information

INTEGRATED CIRCUITS. PCA channel I 2 C multiplexer and interrupt logic. Product data Supersedes data of 2001 May 07.

INTEGRATED CIRCUITS. PCA channel I 2 C multiplexer and interrupt logic. Product data Supersedes data of 2001 May 07. INTEGRATED CIRCUITS 2-channel I 2 C multiplexer and interrupt logic Supersedes data of 2001 May 07 2002 Mar 28 The pass gates of the multiplexer are constructed such that the V DD pin can be used to limit

More information

CATALOG. ANALOG COMMUNICATION SYSTEMS DIGITAL COMMUNICATION SYSTEMS Microcontroller kits Arm controller kits PLC Trainer KITS Regulated Power supplies

CATALOG. ANALOG COMMUNICATION SYSTEMS DIGITAL COMMUNICATION SYSTEMS Microcontroller kits Arm controller kits PLC Trainer KITS Regulated Power supplies CATALOG ANALOG COMMUNICATION SYSTEMS DIGITAL COMMUNICATION SYSTEMS Microcontroller kits Arm controller kits PLC Trainer KITS Regulated Power supplies UNION INTRUMENTS #17 & 18, 4 th floor, Hanumathra Arcade

More information

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 May Oct 01. Philips Semiconductors

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 May Oct 01. Philips Semiconductors INTEGRATED CIRCUITS Product data Supersedes data of 2003 May 02 2004 Oct 01 Philips Semiconductors DESCRIPTION The is a 16-bit I 2 C-bus and SMBus I/O expander optimized for dimming s in 256 discrete steps

More information

Serial Communication AS5132 Rotary Magnetic Position Sensor

Serial Communication AS5132 Rotary Magnetic Position Sensor Serial Communication AS5132 Rotary Magnetic Position Sensor Stephen Dunn 11/13/2015 The AS5132 is a rotary magnetic position sensor capable of measuring the absolute rotational angle of a magnetic field

More information

TCS230 Color Sensor Module User s Guide

TCS230 Color Sensor Module User s Guide TCS230 Color Sensor Module User s Guide DC-SS501_Ver1.0 TCS230 COLOR SENSOR MODULE USER S GUIDE Table of Contents Chapter 1. Overview...1 1.1 Overview... 1 1.2 Features... 1 1.3 Applications... 1 1.4 Pin

More information

The ST7588T is a driver & controller LSI for graphic dot-matrix liquid crystal display systems. It contains 132 segment and 80

The ST7588T is a driver & controller LSI for graphic dot-matrix liquid crystal display systems. It contains 132 segment and 80 ST Sitronix ST7588T 81 x 132 Dot Matrix LCD Controller/Driver INTRODUCTION The ST7588T is a driver & controller LSI for graphic dot-matrix liquid crystal display systems. It contains 132 segment and 80

More information

Citrus Circuits Fall Workshop Series. Roborio and Sensors. Paul Ngo and Ellie Hass

Citrus Circuits Fall Workshop Series. Roborio and Sensors. Paul Ngo and Ellie Hass Citrus Circuits Fall Workshop Series Roborio and Sensors Paul Ngo and Ellie Hass Introduction to Sensors Sensor: a device that detects or measures a physical property and records, indicates, or otherwise

More information

CAT bit Programmable LED Dimmer with I 2 C Interface FEATURES DESCRIPTION APPLICATIONS TYPICAL APPLICATION CIRCUIT

CAT bit Programmable LED Dimmer with I 2 C Interface FEATURES DESCRIPTION APPLICATIONS TYPICAL APPLICATION CIRCUIT 16-bit Programmable Dimmer with I 2 C Interface FEATURES 16 drivers with dimming control 256 brightness steps 16 open drain outputs drive 25 ma each 2 selectable programmable blink rates: frequency: 0.593Hz

More information

8-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

8-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection 19-3056; Rev 3; 1/05 EVALUATION KIT AVAILABLE 8-Port I/O Expander with LED Intensity General Description The I 2 C-/SMBus-compatible serial interfaced peripheral provides microprocessors with 8 I/O ports.

More information

Serial Servo Controller

Serial Servo Controller Document : Datasheet Model # : ROB - 1185 Date : 16-Mar -07 Serial Servo Controller - USART/I 2 C with ADC Rhydo Technologies (P) Ltd. (An ISO 9001:2008 Certified R&D Company) Golden Plaza, Chitoor Road,

More information

Quad, 12-Bit, Low-Power, 2-Wire, Serial Voltage-Output DAC

Quad, 12-Bit, Low-Power, 2-Wire, Serial Voltage-Output DAC 19-317; Rev ; 1/ Quad, 1-Bit, Low-Power, -Wire, Serial Voltage-Output General Description The is a quad, 1-bit voltage-output, digitalto-analog converter () with an I C -compatible, -wire interface that

More information

PCA bit I 2 C LED driver with programmable blink rates INTEGRATED CIRCUITS May 05. Product data Supersedes data of 2003 Feb 20

PCA bit I 2 C LED driver with programmable blink rates INTEGRATED CIRCUITS May 05. Product data Supersedes data of 2003 Feb 20 INTEGRATED CIRCUITS 8-bit I 2 C LED driver with programmable blink rates Supersedes data of 2003 Feb 20 2003 May 05 Philips Semiconductors 8-bit I 2 C LED driver with programmable blink rates FEATURES

More information

AMS0805WAH. CATALOG No.: AMS0805WAH. Motion Sensor Data Sheet Ver Advanced Material on Technology

AMS0805WAH. CATALOG No.: AMS0805WAH. Motion Sensor Data Sheet Ver Advanced Material on Technology CATALOG No.: 2007.11 AMS0805WAH Motion Sensor Data Sheet Ver. 1.1 Advanced Material on Technology Overview Motion sensor is a 6-axis module consisting of 3-axis magnetic sensor and 3-axis accelerometer.

More information

GC221-SO16IP. 8-bit Turbo Microcontroller

GC221-SO16IP. 8-bit Turbo Microcontroller Total Solution of MCU GC221-SO16IP 8-bit Turbo Microcontroller CORERIVER Semiconductor reserves the right to make corrections, modifications, enhancements, improvements, and other changes to its products

More information

PART MAX4584EUB MAX4585EUB TOP VIEW

PART MAX4584EUB MAX4585EUB TOP VIEW 19-1521; Rev ; 8/99 General Description The serial-interface, programmable switches are ideal for multimedia applicatio. Each device contai one normally open (NO) single-pole/ single-throw (SPST) switch

More information

DASL 120 Introduction to Microcontrollers

DASL 120 Introduction to Microcontrollers DASL 120 Introduction to Microcontrollers Lecture 2 Introduction to 8-bit Microcontrollers Introduction to 8-bit Microcontrollers Introduction to 8-bit Microcontrollers Introduction to Atmel Atmega328

More information

Activity 4: Due before the lab during the week of Feb

Activity 4: Due before the lab during the week of Feb Today's Plan Announcements: Lecture Test 2 programming in C Activity 4 Serial interfaces Analog output Driving external loads Motors: dc motors, stepper motors, servos Lecture Test Activity 4: Due before

More information

Preliminary. Ultra-low power, two channel capacitive sensor and touch switch for human body detection

Preliminary. Ultra-low power, two channel capacitive sensor and touch switch for human body detection Ultra-low power, two channel capacitive sensor and touch switch for human body detection 1 General Description The integrated circuit MS8891A is an ultra-low power, two channel capacitive sensor specially

More information

SPI Slave to PWM Generation

SPI Slave to PWM Generation April 2011 Introduction Reference Design RD1107 Pulse-width modulation (PWM) uses a rectangular pulse wave whose pulse width is modulated resulting in the variation of the average value of the waveform.

More information

IS31FL3209 IS31FL CHANNELS LED DRIVER; 1/24 DC SCALING WHITE BALANCE. December 2017

IS31FL3209 IS31FL CHANNELS LED DRIVER; 1/24 DC SCALING WHITE BALANCE. December 2017 18 CHANNELS LED DRIVER; 1/24 DC SCALING WHITE BALANCE December 2017 GENERAL DESCRIPTION IS31FL3209 is comprised of 18 constant current channels each with independent PWM control, designed for driving LEDs,

More information

IS31FL3206 IS31FL CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. Preliminary Information May 2018

IS31FL3206 IS31FL CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. Preliminary Information May 2018 12-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY Preliminary Information May 2018 GENERAL DESCRIPTION IS31FL3206 is comprised of 12 constant current channels each with independent PWM control, designed

More information

EEL 4744C: Microprocessor Applications. Lecture 9. Part 2. M68HC12 Serial I/O. Dr. Tao Li 1

EEL 4744C: Microprocessor Applications. Lecture 9. Part 2. M68HC12 Serial I/O. Dr. Tao Li 1 EEL 4744C: Microprocessor Applications Lecture 9 Part 2 M68HC12 Serial I/O Dr. Tao Li 1 Reading Assignment Software and Hardware Engineering (new version): Chapter 15 SHE (old version): Chapter 11 HC12

More information

Single-wire Signal Aggregation Reference Design

Single-wire Signal Aggregation Reference Design FPGA-RD-02039 Version 1.1 September 2018 Contents Acronyms in This Document... 4 1. Introduction... 5 1.1. Features List... 5 1.2. Block Diagram... 5 2. Parameters and Port List... 7 2.1. Compiler Directives...

More information

I2C Digital Input RTC with Alarm DS1375. Features

I2C Digital Input RTC with Alarm DS1375. Features Rev 2; 9/08 I2C Digital Input RTC with Alarm General Description The digital real-time clock (RTC) is a low-power clock/calendar that does not require a crystal. The device operates from a digital clock

More information

Nuvoton SMBus GPIO Controller W83L603G W83L604G

Nuvoton SMBus GPIO Controller W83L603G W83L604G Nuvoton SMBus GPIO Controller W83L603G W83L604G Revision: 1.1 Date: July, 2008 W83L603G/W83L604G Datasheet Revision History PAGES DATES VERSION WEB VERSION MAIN CONTENTS 1 N.A. Aug./06 1.0 1.0 Initial

More information

MCT U.I. Driver Reference Manual Motor Control Technologies; LLC

MCT U.I. Driver Reference Manual Motor Control Technologies; LLC MCT U.I. Driver Reference Manual Motor Control Technologies; LLC www.mocontech.com 1. The MCTUI Driver...2 2. MCT Hardware Methods...2 2.1.1. BuildDataPacket()...2 3. Third Party Hardware Methods...5 3.1.

More information

RayStar Microelectronics Technology Inc. Ver: 1.4

RayStar Microelectronics Technology Inc. Ver: 1.4 Features Description Product Datasheet Using external 32.768kHz quartz crystal Supports I 2 C-Bus's high speed mode (400 khz) The serial real-time clock is a low-power clock/calendar with a programmable

More information

FUNCTIONAL BLOCK DIAGRAM SDA SCL SMBALERT. SMBus SERIAL BUS INTERFACE ADDRESS SELECTION PWM CONFIG AUTOMATIC FAN SPEED CONTROL REGISTERS

FUNCTIONAL BLOCK DIAGRAM SDA SCL SMBALERT. SMBus SERIAL BUS INTERFACE ADDRESS SELECTION PWM CONFIG AUTOMATIC FAN SPEED CONTROL REGISTERS Temperature Sensor Hub and Fan Controller FEATURES Monitors up to 10 remote temperature sensors Monitors and controls speed of up to 4 fans independently PWM outputs drive each fan under software control

More information

Modern Robotics Inc. Sensor Documentation

Modern Robotics Inc. Sensor Documentation Modern Robotics Inc. Sensor Documentation Version 1.4.3 December 11, 2017 Contents 1. Document Control... 3 2. Introduction... 4 3. Three-Wire Analog & Digital Sensors... 5 3.1. Program Control Button

More information

TOP VIEW. I 2 C/SMBus CONTROLLER. Maxim Integrated Products 1

TOP VIEW. I 2 C/SMBus CONTROLLER. Maxim Integrated Products 1 9-2226; Rev ; 7/04 EVALUATION KIT AVAILABLE Temperature Sensor and General Description The system supervisor monitors multiple power-supply voltages, including its own, and also features an on-board temperature

More information

10-Port Constant-Current LED Drivers and I/O Expanders with PWM Intensity Control

10-Port Constant-Current LED Drivers and I/O Expanders with PWM Intensity Control EVALUATION KIT AVAILABLE AVAILABLE MAX6966/MAX6967 General Description The MAX6966/MAX6967 serial-interfaced peripherals provide microprocessors with 10 I/O ports rated to 7V. Each port can be individually

More information

Figure 1: Functional Block Diagram

Figure 1: Functional Block Diagram MagAlpha MA750 Key features 8 bit digital and 12 bit PWM output 500 khz refresh rate 7.5 ma supply current Serial interface for data readout and settings QFN16 3x3mm Package General Description The MagAlpha

More information

KMA36 universal magnetic encoder

KMA36 universal magnetic encoder Contactless Absolute 360 (180 ) angle measurement Incremental mode Linear mode Standard I2C Interface (100 khz) Programmable resolution up to 13 bit (0.04 degree) Very low hysteresis High accuracy mode

More information

INTEGRATED CIRCUITS DATA SHEET. TDA8424 Hi-Fi stereo audio processor; I 2 C-bus. Product specification File under Integrated Circuits, IC02

INTEGRATED CIRCUITS DATA SHEET. TDA8424 Hi-Fi stereo audio processor; I 2 C-bus. Product specification File under Integrated Circuits, IC02 INTEGRATED CIRCUITS DATA SHEET Hi-Fi stereo audio processor; I 2 C-bus File under Integrated Circuits, IC02 September 1992 FEATURES Mode selector Spatial stereo, stereo and forced mono switch Volume and

More information

Figure 1: Functional Block Diagram

Figure 1: Functional Block Diagram MagAlpha MA120 Angular Sensor for 3-Phase Brushless Motor Key features U V W signals for block commutation Adjustable zero 500 khz refresh rate Ultra low latency: 3 µs Serial interface for settings 8.5

More information

Application Note 160 Using the DS1808 in Audio Applications

Application Note 160 Using the DS1808 in Audio Applications www.maxim-ic.com Application Note 160 Using the DS1808 in Audio Applications Introduction The DS1808 Dual Log Audio Potentiometer was designed to provide superior audio performance in applications that

More information

ABOV SEMICONDUCTOR Co., Ltd. LIGHT-TO-DIGITAL CONVERTER MC8121. Data Sheet (REV.1.61)

ABOV SEMICONDUCTOR Co., Ltd. LIGHT-TO-DIGITAL CONVERTER MC8121. Data Sheet (REV.1.61) ABOV SEMICONDUCTOR Co., Ltd. LIGHT-TO-DIGITAL CONVERTER MC8121 Data Sheet (REV.1.61) REVISION HISTORY REVISION 0.0 (June 7, 2012) - Initial Version REVISION 0.1 (July 4, 2012) - Combine MC8111 & MC8121

More information

Know your energy. Modbus Register Map EM etactica Power Meter

Know your energy. Modbus Register Map EM etactica Power Meter Know your energy Modbus Register Map EM etactica Power Meter Revision history Version Action Author Date 1.0 Initial document KP 25.08.2013 1.1 Document review, description and register update GP 26.08.2013

More information

S-35399A03 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.1_03

S-35399A03 2-WIRE REAL-TIME CLOCK. Features. Applications. Package.  ABLIC Inc., Rev.3.1_03 www.ablicinc.com 2-WIRE REAL-TIME CLOCK ABLIC Inc., 2007-2016 Rev.3.1_03 The is a CMOS 2-wire real-time clock IC which operates with the very low current consumption in the wide range of operation voltage.

More information