??? 12/23/05 04:24 Read: times |
#105808 - Some suggestions Responding to: ???'s previous message |
Dear Abhishek,
if she is not using the port P1.0 and P1.1 then there is no need to put pull up to these port pins. Dear Shivani, The hex file is OK. So find out the problem in hardware. And it is very difficult to locate the problem just by guessing. But still some suggestions. Put a 4K7 pullup resistor for P3.2 (As suggested by Kai- 2K2) Try to add up a little more code and see the variations on output ports. Use 1sec delay and output 0X55h and 0XAAh alternately on port 1 for 10 to 15 times, and connect LEDs on putput port 1 so as to know something is happening inside the uC. Check whether your crystal is functioning or not. If you don't have a scope, then you can check it by multimeter too. It should show the voltage 2.5V on XTAL1 and 1.5 to 2.5V on XTAL2. Check your switch. Sometimes it may be working, sometimes not. This happens with faulty switches. Add something more instead of just making the port P1 low. Like put a counter and output the sequence from 00 to 0X0Fh with a delay of 1 sec or so. I always used to do such counter type of tricks when I started using uC. And read my previous post. Few tips from that will also help you. (Atleast in software writting) Use LEDs to monitor the status of uC. For example before starting of any function blink one (say RED) LED on any port pin and blink another (say GREEN) after finishing that function. Thus you can observe the bevahiour of your uC. If nothing happens then there is some problem with your RESET or CLK. The above suggestions are based on the assumption that you have programmed the chip properly and wired your uC like this. http://www.iguanalabs.com/1st2051.htm You can check your flash by simply reading it back and comparing it with the one you loaded. Or you can disassemble that code and check back. Last but not the least check for any loose connections :) Regards Sarang |
Topic | Author | Date |
this code is not working | 01/01/70 00:00 | |
You solved it! | 01/01/70 00:00 | |
overreaction | 01/01/70 00:00 | |
Humility ? | 01/01/70 00:00 | |
Call it cultural difference... | 01/01/70 00:00 | |
Sounds familiar | 01/01/70 00:00 | |
thanks Jan Waclawek | 01/01/70 00:00 | |
Keil's startup.a51 | 01/01/70 00:00 | |
hex seems OK | 01/01/70 00:00 | |
re hex seems OK | 01/01/70 00:00 | |
And the switch? | 01/01/70 00:00 | |
and switch | 01/01/70 00:00 | |
Try a pull-up | 01/01/70 00:00 | |
switch function | 01/01/70 00:00 | |
Not at all | 01/01/70 00:00 | |
reset cap | 01/01/70 00:00 | |
yeah | 01/01/70 00:00 | |
It can! | 01/01/70 00:00 | |
points | 01/01/70 00:00 | |
Some suggestions | 01/01/70 00:00 | |
nope | 01/01/70 00:00 | |
Use LEDs | 01/01/70 00:00 | |
ok let me follow | 01/01/70 00:00 | |
That sounds good ! | 01/01/70 00:00 | |
try this code | 01/01/70 00:00 | |
and what good will that do?![]() | 01/01/70 00:00 | |
How? | 01/01/70 00:00 | |
capital | 01/01/70 00:00 | |
Thanks! | 01/01/70 00:00 | |
I did the same thing recently | 01/01/70 00:00 | |
At least... | 01/01/70 00:00 | |
HORSEFEATHERS | 01/01/70 00:00 | |
i think yopu didn't got the message | 01/01/70 00:00 | |
of course it is not | 01/01/70 00:00 | |
It's easy to fix the code | 01/01/70 00:00 | |
no, he does not | 01/01/70 00:00 | |
wrong suggestion | 01/01/70 00:00 | |
it DOES NOT write to R0 | 01/01/70 00:00 | |
RE: it DOES NOT write to R0 | 01/01/70 00:00 | |
why the continued discussion | 01/01/70 00:00 | |
Time zone | 01/01/70 00:00 | |
just another guess | 01/01/70 00:00 | |
She is most likely from India | 01/01/70 00:00 | |
Irony | 01/01/70 00:00 | |
Help me | 01/01/70 00:00 | |
re help me | 01/01/70 00:00 | |
What happens if? | 01/01/70 00:00 | |
i will see | 01/01/70 00:00 | |
"mov @r0,#00h" by "NOP, NOP"? | 01/01/70 00:00 | |
A good idea | 01/01/70 00:00 | |
nothing postive | 01/01/70 00:00 | |
RAM fill ? | 01/01/70 00:00 | |
re ram fill | 01/01/70 00:00 | |
Simulator. | 01/01/70 00:00 | |
Is the CPU really running? | 01/01/70 00:00 | |
mov p1,r0 | 01/01/70 00:00 | |
last hope | 01/01/70 00:00 | |
Tell this first | 01/01/70 00:00 | |
let me clear | 01/01/70 00:00 | |
pull ups | 01/01/70 00:00 | |
re pull ups | 01/01/70 00:00 | |
a word on pull ups | 01/01/70 00:00 | |
What to say for that ignorance? | 01/01/70 00:00 |