??? 10/03/08 00:20 Read: times |
#158781 - Multi 8051 Project |
Prof.Sirichote's Clock http://chaokhun.kmitl.ac.th/~kswichit/clock
and Archy's Melody http://www.tekniikka.oamk.fi/~archy/at...2051melody combined to produce a 7 Segment clock with hourly chimes and loud musical(melody) Alarm/s at preset time/s - with remote controlled snooze but the nagging Alarm stoppable only by a somewhat difficult combination of the normal four tactile switches,is what I propose.So two 8051 s two power supply regulators and a LM386.Four 7 segments and at least four tactile switches.Let us assume exactly same circuits and firmwares. Sirichote's clock is very good (specially blink) except Alarm and switch processing.Archy's Melody circuit and firmware has to be modified somewhat for the present purpose.I propose to do away with the power off.Instead the melody genarator 8051 will receive instructions from clock 8051 and play either hour numbered short beeps as hourly chimes and continuous melodies interruptible for a minute by remote snooze and stoppable by local switches.By remote you can change melodies, and so on and so forth. I have broken down the problem in smalls and is presently concerned with hourly chimes.I have connected melody generators P3.0 to P3.5 to clock generator's P0.0 to P0.5.So the bits 0 to 3 will select melody number,whereas bit 4 is hourly chime and bit 5 is long melody.So far I have implemented a cjne structure to select one of the fourteen melodies.Working but I have a feeling that melody generator should send back a 'finished' flag to clock generator.This is because the melodies were written for about 15 seconds duration (for one of my earlier projects) but in case of Alarm, the melody must continue (may be with some gaps in between).So after issuing a start melody instruction by writing anything other than ffh to the comm port P0,the clock generator should periodically poll the 'finished' flag during the alarm on period. Kindly let me know if you find a fault in the conception.Can you suggest any reading material? tick0: CLR C ; while(1) MOV A,tick ; { while ( tick < 1) XRL A,#080H ;IF tick was 0 XRL 80 will make A=80 SUBB A,#081H ;SUBB 81 will set carry and scanLED is looped JNC tickNOT0 LCALL scanLED ;scanLED() SJMP tick0 tickNOT0:MOV tick,#000H ;tick = 0 ;IF tick was NOT 0 tick is made 0 ;every 10ms timer_isr increases tick so following tasks execute every 10ms timeToBuffer blink keyexe keydelay comparetime:MOV A,hour cjne a,alhour,NOTAL MOV A,min cjne a,almin,NOTAL mov alrmtrig,#0DFH;11011111 MOV ALARMPORT,HOUR JMP tick0 NOTAL: MOV ALARMPORT,#0FFH JMP tick0 Can you suggest any link for multi microcontroller projects? With best regards, A.S.Rudra |
Topic | Author | Date |
Multi 8051 Project | 01/01/70 00:00 | |
WHY??? | 01/01/70 00:00 | |
Thanks Erik | 01/01/70 00:00 | |
not ONLY, always | 01/01/70 00:00 | |
Really toys but better | 01/01/70 00:00 | |
get a supervisor!![]() | 01/01/70 00:00 | |
Only 2 processors? | 01/01/70 00:00 | |
Thanks Andy for the keywords | 01/01/70 00:00 |