rikonor
Newbie level 2
Hi
I'm trying to build a circuit with an Atmel AT28C2051,
It is supposed to recieve serial data on the serial port (RxD - pin 2 [port 3.0]).
However, no matter what code I write and burn onto it,
It shows "1" on all port pins (except port 1.0 % 1.1, which require external resistors, and since I'm not using those pins I did not use those resistors).
I tried writing many different programs (in C51, and of course included 'reg51.h') that are supposed to change the output levels to "0",
but it hasn't worked.
The microcontroller has an external clock (12mhz crystal and 2 22pF capcitors),
and an automatic reset (comprising of a 100kOhm resistor and a 1µF capacitor).
I read on the datasheet that after holding RST for 2 machine cycles the microcontroller is reset and all port pins are set to 'high'.
Is there anything wrong with the circuit or maybe the rom didn't get flashed at all?
(I used LEAPER-48 usb universal writer with the IC Writer program).
Help greatly appreciated,
thanks,
Or
I'm trying to build a circuit with an Atmel AT28C2051,
It is supposed to recieve serial data on the serial port (RxD - pin 2 [port 3.0]).
However, no matter what code I write and burn onto it,
It shows "1" on all port pins (except port 1.0 % 1.1, which require external resistors, and since I'm not using those pins I did not use those resistors).
I tried writing many different programs (in C51, and of course included 'reg51.h') that are supposed to change the output levels to "0",
but it hasn't worked.
The microcontroller has an external clock (12mhz crystal and 2 22pF capcitors),
and an automatic reset (comprising of a 100kOhm resistor and a 1µF capacitor).
I read on the datasheet that after holding RST for 2 machine cycles the microcontroller is reset and all port pins are set to 'high'.
Is there anything wrong with the circuit or maybe the rom didn't get flashed at all?
(I used LEAPER-48 usb universal writer with the IC Writer program).
Help greatly appreciated,
thanks,
Or