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.

I2c_implementing_with_gpios

Status
Not open for further replies.

mail2mahesh123@gmail.com

Newbie level 5
Joined
Jan 2, 2012
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,350
Hi

I am using MSP430G2231 microcontroller in my application. My purpose is to read the temperature sensor (TMP275) connected to MSP430 through P1.0(SDA) and P1.1(SCL).

Here I2C pins are multiplexed with JTAG pins. So i cannot use them for I2C purpose. I am debugging the board using JTAG. So how to generate 400kHz I2C clock signal using GPIO pin P1.1. And is there any way to use USI I2C module with gpios P1.0 AND P1.1 in my condition or How to implement i2c with GPIOS?

Thanks & Regards,

Mah Kon
 

Dear mahesh,

Are u using bit banging method? Because i didn't find hardware support of the SDA and SCL on the specified controller MSP430G2x31..

I refered the following tables in the data sheet.

"Table 18. Port P1 (P1.0 to P1.2) Pin Functions – MSP430G2x31"
"Table 19. Port P1 (P1.3) Pin Functions – MSP430G2x31"
"Table 20. Port P1 (P1.4) Pin Functions – MSP430G2x31"
"Table 21. Port P1 (P1.5) Pin Functions - MSP430G2x31"
"Table 22. Port P1 (P1.6) Pin Functions - MSP430G2x31"
"Table 23. Port P1 (P1.7) Pin Functions – MSP430G2x31"


May be u could have refered MSP430G2x21 microcontroller?

Please verify. If i am wrong please let me know where i have made mistake.

Thanks and regards,
karthikkr
 

check yr mail

---------- Post added at 06:56 ---------- Previous post was at 06:53 ----------

Change port pin definition according to your requirement
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top