Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Using I2C debugger in Proteus VSM

Status
Not open for further replies.

Cable_Guy

Newbie level 3
Newbie level 3
Joined
Mar 25, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,310
I want to simulate communication with an MCP9801 serial output temperature sensor in Proteus VSM by using the I2C debugger as the bus master.

Here is the schematic and simulation results:
http://imageshack.us/photo/my-images/13/testcircuit.jpg/

There is no activity on the bus.

The command sequence should read temperature from the TA register (timing diagram from
http://imageshack.us/photo/my-images/859/timingdiagram.jpg/ )

Reference: link to the MCP9801 datasheet:http://www.datasheetcatalog.org/datasheet2/d/0jah5j3yagu1fft7wczs570sskfy.pdf


These are the settings in the "Edit Component" window:

Clock frequency in Hz:10 000 (10 kHz - values recommended in datasheet: Min - 10 kHz, Max 100 kHz)

Adress byte 1: (Default) // Master mode
Adress byte 2: (Default) // Master mode

Stop on buffer empty?: checked

Advance Properties->Queue stored sequences at startup: NO



The problem might be that I do not understand the role of the TRIG pin of the I2C; here is what I found in the I2C debugger help file:

''The TRIG pin is an input that causes the succesive stored sequence to be placed on the output queue."

From what I understand, this TRIG pin is used to move sequences from the "Predefined Sequence" list to the "Queued Sequences" list. But that can be done by clicking the "Queue" button in the analyzer's pop-up window.

Here is the operating point info for the devices:

I2C debugger

SCL: WHI
SDA: WHI
TRIG: FLT

MCP9801:

Terminal voltages:
A0 0 V
A1 0 V
A2 0 V
GND 0 V
SCLK 3.299 V
SDA 3.300 V
VDD 5 V - datasheet requirements: 3.0 - 3.6 V -> how can I change this value?

Terminal logic states
ALERT FLT
SCLCK WHI
SDA WHI

Is it possible to simulate this type of communication (between I2C debugger -master and MCP9801 - slave), or do I have to write code for a microcontroller and just use the I2C debugger to monitor the transfer?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top