??? 03/18/05 17:59 Read: times |
#89966 - Malaysian Grand Prix... Responding to: ???'s previous message |
Grant Beattie said:
Well we can clearly see the C++/Java influence in your code! I'm gonna have to put on a pot of coffee before I tackle that. Correct, see the comments I gave to Jez. But it's nice, isn't it? Not that 'insane', if you ask me... Regarding the 'pot of coffee': I read already many times on this forum people aren't specific enough, hence the long story I wrote to avoid this 'reproof'. And of course to be as clear as possible too, but maybe that's even not enough... Grant Beattie said:
But assuming you have an emulator or simulator... have you tried stepping through it?
Unfortunately, the only thing I have is a simple Eprom simulator (bought from ELV, a German electronics company). I download my code into the simulator and start up the processor by simply resetting it (in fact, the simulator does this for me...). I have no means of running my code on the target in a 'debug stepper' mode. What I can, is simulating it on the environment I'm using (uVision2). That's what I already did and I didn't see the famous bit0 changing values (remained 1). Honesty forces me to say that I can't simulate I2C on the PC. That's why I want a visual indication (by means of the LED) to see if my code is running fine. Grant Beattie said:
Do you have confidence in the I2C routines? I think I can have (although I wrote it myself, but I don't like self-idolatry!). I'm already controlling 8 PCF8591's, 4 TDA8444's and 4 other PCF8574's (2 of them controlling an LCD). This runs all very smooth, without a problem so far (and it already runs for quite a while!). Before someone throws a coffeepot to my head, the PCF8574's I'm currently already using, are all configured as OUTPUT. The problem I'm facing now, is that I'm using the IO expander for the first time (partly) as INPUT. Grant Beattie said:
I gotta say, without knowing the code behind some of the higher level constructs you're using (higher than C), it will require a deeper investigation of some of these statements. I fully understand. I've seen this code already a tig times, but for you guys it's completely new... One comfort: I stick to C (couldn't find D, in fact... ;-) ) Grant Beattie said:
What are you using to compile it? I'm using the Keil environment (IDE and compiler), uVision2. Grant Beattie said:
I think I'll go watch the Malaysian Grand Prix first... ;-) Just do that. In the mean time, I'll continue my search! :-) Best rgds, --Geert |
Topic | Author | Date |
Problems with PCF8574 input | 01/01/70 00:00 | |
best guess | 01/01/70 00:00 | |
To Erik | 01/01/70 00:00 | |
So.... | 01/01/70 00:00 | |
To Jez Smith | 01/01/70 00:00 | |
show the code | 01/01/70 00:00 | |
To Oleg | 01/01/70 00:00 | |
How to post code | 01/01/70 00:00 | |
To Andy | 01/01/70 00:00 | |
hmmmmmm | 01/01/70 00:00 | |
To Jez | 01/01/70 00:00 | |
RTFDS - using 8574 IO as inputs | 01/01/70 00:00 | |
To J. Guy | 01/01/70 00:00 | |
When is pin written ? | 01/01/70 00:00 | |
My datasheet tells something different.. | 01/01/70 00:00 | |
To Kai | 01/01/70 00:00 | |
cutting through the fog | 01/01/70 00:00 | |
To J. Guy | 01/01/70 00:00 | |
Where is the difference between... | 01/01/70 00:00 | |
To Kai | 01/01/70 00:00 | |
Re:Problems with PCF8574 input | 01/01/70 00:00 | |
Test it without having any communication | 01/01/70 00:00 | |
To Kai | 01/01/70 00:00 | |
Maybe good guess! | 01/01/70 00:00 | |
To Medhi | 01/01/70 00:00 | |
Switch terminology | 01/01/70 00:00 | |
Thanks! | 01/01/70 00:00 | |
Coonfoosed yeeet | 01/01/70 00:00 | |
Contact arrangement - nothing else | 01/01/70 00:00 | |
PCF8574 | 01/01/70 00:00 | |
To Ben | 01/01/70 00:00 | |
I have used the bugger often | 01/01/70 00:00 | |
To Erik | 01/01/70 00:00 | |
helloooooooooo !! | 01/01/70 00:00 | |
To Erik | 01/01/70 00:00 | |
Wager... | 01/01/70 00:00 | |
To Grant | 01/01/70 00:00 | |
The code... | 01/01/70 00:00 | |
Thats told 'em :-) | 01/01/70 00:00 | |
Frightend... ;-) | 01/01/70 00:00 | |
Formatting | 01/01/70 00:00 | |
Format flavours. | 01/01/70 00:00 | |
Insanity | 01/01/70 00:00 | |
Malaysian Grand Prix... | 01/01/70 00:00 | |
Some update!!! | 01/01/70 00:00 | |
Let me comment.... | 01/01/70 00:00 | |
"fancy" code | 01/01/70 00:00 | |
I'll Suggest... | 01/01/70 00:00 | |
Pointers and structures | 01/01/70 00:00 | |
C assumes int | 01/01/70 00:00 | |
Followed the advice of Michael Karas... | 01/01/70 00:00 | |
Why not assembly using? | 01/01/70 00:00 | |
Assembler code | 01/01/70 00:00 | |
Well... | 01/01/70 00:00 | |
int | 01/01/70 00:00 | |
Check Maxint ? | 01/01/70 00:00 | |
Maxint | 01/01/70 00:00 | |
Murdered quote | 01/01/70 00:00 | |
I2C code | 01/01/70 00:00 | |
Keil webpage | 01/01/70 00:00 | |
i2c simulator | 01/01/70 00:00 | |
Me to blame? | 01/01/70 00:00 | |
not blaming you! | 01/01/70 00:00 | |
Michael B. made a very usefull tool! | 01/01/70 00:00 | |
hello | 01/01/70 00:00 | |
Not aware? | 01/01/70 00:00 | |
thank u | 01/01/70 00:00 | |
Name confusion...![]() | 01/01/70 00:00 | |
hi | 01/01/70 00:00 | |
Damned, damned, damned... | 01/01/70 00:00 | |
Ha, ha, ha, ha, ha .... | 01/01/70 00:00 | |
Calico | 01/01/70 00:00 | |
Pls. do so! | 01/01/70 00:00 | |
Keyboard Calico | 01/01/70 00:00 | |
Christmas | 01/01/70 00:00 | |
Maybe it was .... | 01/01/70 00:00 | |
Christmas Presents | 01/01/70 00:00 |