Author |
Message |
Topic: Port status |
birumher
Replies: 5
Views: 6314
|
Forum: General CCS C Discussion Posted: Mon Jul 24, 2006 7:33 am Subject: Port status |
try
if (INPUT(PIN_B0) == 0)
{
.....
....
} |
Topic: DS1307 RTC and 24LC256 EEPROM on the same i2c bus problem |
birumher
Replies: 3
Views: 10666
|
Forum: General CCS C Discussion Posted: Mon Jul 24, 2006 7:21 am Subject: DS1307 RTC and 24LC256 EEPROM on the same i2c bus problem |
in 24256.c pins are
#ifndef EEPROM_SDA
#define EEPROM_SDA PIN_B1
#define EEPROM_SCL PIN_B0
#endif
you have to change it...
And in your circuit A0, A1, A2 of 24256 must be grounded. ... |
Topic: DS1307 RTC and 24LC256 EEPROM on the same i2c bus problem |
birumher
Replies: 3
Views: 10666
|
Forum: General CCS C Discussion Posted: Mon Jul 24, 2006 2:37 am Subject: DS1307 RTC and 24LC256 EEPROM on the same i2c bus problem |
I use DS1307 and 24LC32 on the same bus and it works fine.
Here is my circuit
http://img140.imageshack.us/img140/2381/ds13072432jc4.th.jpg
#if defined(__PCM__)
#include <16F877> ... |
Topic: I2C EEPROM Simulation |
birumher
Replies: 6
Views: 10645
|
Forum: General CCS C Discussion Posted: Sun Jul 02, 2006 2:47 pm Subject: I2C EEPROM Simulation |
Proteus simulates a 24C32A or a 24LC32A just fine.
Could you please post an example?
Maybe my version has some problems.
I am using 6.9 sp4... |
Topic: I2C EEPROM Simulation |
birumher
Replies: 6
Views: 10645
|
Forum: General CCS C Discussion Posted: Sun Jul 02, 2006 6:35 am Subject: I2C EEPROM Simulation |
I builded the circuit. It works fine .
(I think that proteus can't simulate 24c32.) |
Topic: I2C EEPROM Simulation |
birumher
Replies: 6
Views: 10645
|
Forum: General CCS C Discussion Posted: Fri Jun 30, 2006 4:48 am Subject: I2C EEPROM Simulation |
OK Ttelmah thank you for your warning. I changed Vcc and Vdd lines according eeprom and pic pins. But it is still the same result. Now I think that it is a simulation problem. I will build the circuit ... |
Topic: I2C EEPROM Simulation |
birumher
Replies: 6
Views: 10645
|
Forum: General CCS C Discussion Posted: Fri Jun 30, 2006 2:30 am Subject: I2C EEPROM Simulation |
Hi, I want to simulate 24C32 I2C EEPROM with Proteus, unfortunately it doesnt work :( . I write 12 to 5. address and when I read the 5. address it is allways 255.
Where is the mistake ? In my code o ... |
Topic: 18F452 ADC Stops |
birumher
Replies: 3
Views: 8204
|
Forum: General CCS C Discussion Posted: Wed Nov 10, 2004 7:02 am Subject: 18F452 ADC Stops |
Thank you for your replies mvaraujo , Ttelmah.
I am changing the code . In every interrupt routine it will only sample 1 channel, and 1 sample for 20 us is enough for me. But there is a point that ... |
Topic: 18F452 ADC Stops |
birumher
Replies: 3
Views: 8204
|
Forum: General CCS C Discussion Posted: Mon Nov 08, 2004 10:19 am Subject: 18F452 ADC Stops |
I am trying to make 8 channel ADC with USB support.
in every 100 us with timer0 interrupt program starts channel 1 conversion and send the value USB chip after channel 2 conversion starts etc..
The ... |
Topic: Usb with PIC |
birumher
Replies: 16
Views: 28267
|
Forum: General CCS C Discussion Posted: Tue Oct 19, 2004 6:03 am Subject: Usb with PIC |
I have used USBMOD2 from
#bit RXF = 7.2 // PORTC 2
#bit TXE = 7.1//PORTC 1
#bit WR = 7.0// PORTC 0
#bit RD = 8.3//PORTD 3
#byte B = 6 //PORT B
void main() {
byte k;
... |
|