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

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [example/] [i2c/] [TMP100/] [uc/] [i2c_tmp100.9x8] - Rev 14

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

# Copyright 2012, Sinclair R.F., Inc.
#
# Run a TI TMP100 I2C Temperature sensor.  Report the temperature once per
# second over a 9600 baud UART as a hex value.

ARCHITECTURE core/9x8 Verilog

INSTRUCTION     2048
DATA_STACK      32
RETURN_STACK    32

MEMORY          RAM ram 32

PORTCOMMENT     I2C bus
PERIPHERAL      open_drain      inport=I_SCL \
                                outport=O_SCL \
                                iosignal=io_scl
PERIPHERAL      open_drain      inport=I_SDA \
                                outport=O_SDA \
                                iosignal=io_sda

PORTCOMMENT     UART_Tx ports
PERIPHERAL      UART_Tx         outport=O_UART_TX \
                                outstatus=I_UART_TX \
                                baudmethod=97_000_000/9600

ASSEMBLY i2c_tmp100.s

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

powered by: WebSVN 2.1.0

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