NEED HELP TO CONVERT A PROGRAM CODE WRITTEN FOR MEGA32 TO AT89C52+xtrnalADC0808
Discussion in "Project Addition or Changes" started by gpreet Oct 19, 2008.
Sun Oct 19 2008, 10:38 pm
hi..
my project needs a program code compatible for at89c52, i have the whole code for mega32,, but dont kw that how to make it compatible with at89c52 with external adc..
the code which i have also includes the programming of isd-1420(camcorder chip),, but i want to exclude that part in new code...
i m attaching the ckt diagram..
the ckt needs the following:
1).adc0808 interfacing
2).keypad(4X4) & lcd(16X2) interfacing
3).voice n address bits not to be used(as i m not using camcorder chip)
working that i want through project code:
1. Multiple accounts
a. Four to Six digit variable password
b. Seven accounts for different settings and people
c. Seven methods to arm the system
2. LCD displays current status
3. Intuitive keypad for inputs including scrolling and backspace abilities
4. Home Security Computer Consol (HSCC)
a. Display and reset user accounts
b. Notified if alarm is trigger
c. Send for police dispatch
d. Shut off alarm
e. Set and display system time
5. Two Alarm States
a. Audio Alarm
b. Silent Alarm
plz guide/help..
my project needs a program code compatible for at89c52, i have the whole code for mega32,, but dont kw that how to make it compatible with at89c52 with external adc..
the code which i have also includes the programming of isd-1420(camcorder chip),, but i want to exclude that part in new code...
i m attaching the ckt diagram..
the ckt needs the following:
1).adc0808 interfacing
2).keypad(4X4) & lcd(16X2) interfacing
3).voice n address bits not to be used(as i m not using camcorder chip)
working that i want through project code:
1. Multiple accounts
a. Four to Six digit variable password
b. Seven accounts for different settings and people
c. Seven methods to arm the system
2. LCD displays current status
3. Intuitive keypad for inputs including scrolling and backspace abilities
4. Home Security Computer Consol (HSCC)
a. Display and reset user accounts
b. Notified if alarm is trigger
c. Send for police dispatch
d. Shut off alarm
e. Set and display system time
5. Two Alarm States
a. Audio Alarm
b. Silent Alarm
plz guide/help..
Sun Oct 19 2008, 11:33 pm
hi gpreet,
unlike the ATmega32 where u can use some pins as ADC input or the usual digital input/output pins, the ADC0808 input is exclusively for analog input and cannot be used as digital output . So u will have to connect the status/warning LEDs/voice and the buzzer output to some other free port pins of the 89c51.
unlike the ATmega32 where u can use some pins as ADC input or the usual digital input/output pins, the ADC0808 input is exclusively for analog input and cannot be used as digital output . So u will have to connect the status/warning LEDs/voice and the buzzer output to some other free port pins of the 89c51.
gpreet like this.
Powered by e107 Forum System