OpenCores
URL https://opencores.org/ocsvn/ssbcc/ssbcc/trunk

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [example/] [i2c/] [TCA9554/] [uc/] [i2c_tca9554.9x8] - Blame information for rev 11

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 sinclairrf
# Copyright 2014, Sinclair R.F., Inc.
2
#
3
# Run a TI TCA9554 8-bit I/O exander.  Read the 8-bit port when the interrupt is
4
# received and report the 8-bit setting over a 9600 baud UART as a hex value.
5
 
6
ARCHITECTURE core/9x8 Verilog
7
 
8
INSTRUCTION     2048
9
DATA_STACK      32
10
RETURN_STACK    32
11
 
12
PORTCOMMENT     TCA9554 interrupt and I2C bus
13
INPORT          1-bit           i_int                   \
14
                                I_INT
15
PERIPHERAL      open_drain      inport=I_SCL            \
16
                                outport=O_SCL           \
17
                                iosignal=io_scl
18
PERIPHERAL      open_drain      inport=I_SDA            \
19
                                outport=O_SDA           \
20
                                iosignal=io_sda
21
 
22
PORTCOMMENT     UART port
23
PERIPHERAL      UART_Tx         outsignal=o_uart_tx     \
24
                                outport=O_UART_TX       \
25
                                outstatus=I_UART_TX_BUSY \
26
                                baudmethod=25_000_000/9600
27
 
28
ASSEMBLY i2c_tca9554.s

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.