AT89C51RD2 programming
Discussion in "8051 Discussion Forum" started by Exterminator Dec 22, 2009.
Tue Dec 29 2009, 06:17 pm
Wed Dec 30 2009, 05:03 pm
Its hard to make out which pin goes where.
if its just a programmer then i am sure it has facility to be controlled from FLIP.
make sure you have settings enabled to control PSEN and Reset using DTR pins etc... look for the options.
if its just a programmer then i am sure it has facility to be controlled from FLIP.
make sure you have settings enabled to control PSEN and Reset using DTR pins etc... look for the options.
Thu Dec 31 2009, 02:13 pm
Converting Hex values to ascii values in C
How can can i convert hex values e.g (0x40,0x12,0x0A)retrived from 89S52 counters to ascii decimal values e.g(64,18,10)which is sent to the serial buffer (SBUF) of 8952 microcontroller.
How can can i convert hex values e.g (0x40,0x12,0x0A)retrived from 89S52 counters to ascii decimal values e.g(64,18,10)which is sent to the serial buffer (SBUF) of 8952 microcontroller.
Tue Jan 05 2010, 08:07 pm
make sure you have settings enabled to control PSEN and Reset using DTR pins etc... look for the options.Ajay Bhargav
Can you tell me where i can change these options?
Mon Jan 11 2010, 03:02 pm
I've tryed it once again with a new chip and the result is the same.. I made one modification tho, that forms the folowing state:
- EA is tied to Vcc.
- ALE is not connected at all;
- PSEN is connected to grounded switch (you know it: pullup resistor is presented as well);
- RX/TX are connected to COM-port via MAX232.
When i turn on the power the controller "sucks" around 60-70mA, but when i press the PSEN grounded switch, the current drops to around 16-20mA (i guess the controller goes out of bootloader mode). While in the bootloader mode i try interfacing him with FLIP (i use a PC with default COM port settings) the timeout error accurs again. I used MAX232 and set it up on a protoboard with all the right capacitors and connections..
What else could be wrong?
Can anyone who uses the same controller upload me his programming schematics or anything that could help me to connect it correctly, since i still think there is something wrong wit the PC-uP connections...
THX!
- EA is tied to Vcc.
- ALE is not connected at all;
- PSEN is connected to grounded switch (you know it: pullup resistor is presented as well);
- RX/TX are connected to COM-port via MAX232.
When i turn on the power the controller "sucks" around 60-70mA, but when i press the PSEN grounded switch, the current drops to around 16-20mA (i guess the controller goes out of bootloader mode). While in the bootloader mode i try interfacing him with FLIP (i use a PC with default COM port settings) the timeout error accurs again. I used MAX232 and set it up on a protoboard with all the right capacitors and connections..
What else could be wrong?
Can anyone who uses the same controller upload me his programming schematics or anything that could help me to connect it correctly, since i still think there is something wrong wit the PC-uP connections...
THX!
Wed Jan 13 2010, 12:22 am
i used ED2, which is similar to RD2. I have done the same, make sure to press reset after setting all the ISP conditions only then bootloader will be activated.
try this circuit, its simple and works with FLIP, well worked for me and its kind of fully controlled by FLIP so need not to interfere in programming process.
try this circuit, its simple and works with FLIP, well worked for me and its kind of fully controlled by FLIP so need not to interfere in programming process.
Exterminator like this.
Wed Jan 13 2010, 03:40 am
I'll build this circuit and try it out, but can you tell me what the WD ENABLE pin si..
I figured out the PSEN# and Tx, Rx..
Got one more question: What are the lenght limitations for the comunication cables? (PC to MAX232 and MAX232 to uP)
I figured out the PSEN# and Tx, Rx..
Got one more question: What are the lenght limitations for the comunication cables? (PC to MAX232 and MAX232 to uP)
Thu Jan 14 2010, 01:46 am
1 mtr is ok i believe.
that enable pin.. hmm i dont remember this circuit i found from my PC junkyard lol!
that enable pin.. hmm i dont remember this circuit i found from my PC junkyard lol!
Fri Jan 29 2010, 03:46 am
I haven't found the time to test the circuit, but i came up with one more question: What software do you use to write you programs and compile them? I need a BASCOM-like enviroment for AT89C51RD2..
Powered by e107 Forum System