Presentation is loading. Please wait.

Presentation is loading. Please wait.

FPPA. mova, 0b00111111;/// 0 movSEG_PORT, a; set1SEG0_COM; set0SEG1_COM; /// TODO set0SEG0_COM; set1SEG1_COM; /// TODO SEG0_COMSEG1_COM displayLoop:

Similar presentations


Presentation on theme: "FPPA. mova, 0b00111111;/// 0 movSEG_PORT, a; set1SEG0_COM; set0SEG1_COM; /// TODO set0SEG0_COM; set1SEG1_COM; /// TODO SEG0_COMSEG1_COM displayLoop:"— Presentation transcript:

1 FPPA

2 mova, 0b00111111;/// 0 movSEG_PORT, a;

3 set1SEG0_COM; set0SEG1_COM; /// TODO set0SEG0_COM; set1SEG1_COM; /// TODO SEG0_COMSEG1_COM displayLoop: set1SEG0_COM; set1SEG1_COM; mova, 0b01101111;// 9 movSEG_PORT, a; set1SEG0_COM; set0SEG1_COM; set1SEG0_COM; set1SEG1_COM; mova, 0b01011011;// 2 movSEG_PORT, a; set0SEG0_COM; set1SEG0_COM; gotodisplayLoop;

4 mova, ha@DigitCode movhb@code_ptr, a; mova, la@DigitCode movlb@code_ptr, a; mova, 9; addlb@code_ptr, a; addchb@code_ptr; ldtablcode_ptr; set1pb.0; set1pb.1; movSEG_PORT, a; set1pb.0; set0pb.1; DigitCode: dc 0b00111111;/// 0 dc 0b00000110;/// 1 dc 0b01011011;/// 2 dc 0b01001111;/// 3 dc 0b01100110;/// 4 dc 0b01101101;/// 5 dc 0b01111101;/// 6 dc 0b00100111;/// 7 dc 0b01111111;/// 8 dc 0b01101111;/// 9 ROM 01fd 01fe 01ff 0200 0201 0202 0203 0204 0205 0206 value code_ptr HILO word DigitCode 0b01101111 value index 003f 0006 005b 004f 0066 006d 007d 0027 007f 006f address 00 word

5 songTable: dc1; dc5; dc6; dc5; dc0; (HZ) Do 262 Re 294 Me 330 Fa 349 So 392 La 440 Si 494 Buzzer Tone CPUFPP0 toneTable: dc0;///0:None dc127;///1:Do dc113;///2:Re dc101;///3:Mi dc96 ;///4:Fa dc85 ;///5:So dc76 ;///6:La dc67 ;///7:Si song_count START STOP

6 mova, ha@songTable; movhb@song_ptr, a; mova, la@songTable; movlb@song_ptr, a; mova, song_count; addlb@song_ptr, a; addchb@song_ptr; ldtablsong_ptr; movsong, a; mova, ha@toneTable; movhb@tone_ptr, a; mova, la@toneTable; movlb@tone_ptr, a; mova, song; addlb@tone_ptr, a; addchb@tone_ptr; ldtabltone_ptr; movtone, a; song_ptr songTable song_count tone_ptr toneTable song ROM RAM index tone song RAM BZ ldtabl HILO word int HILO word

7 * BZ ** 7 *** RGB-LED**** **** ***** PWM ***** IR ****** MP3 ******* PS/2******** LCM ********* AD**** ****


Download ppt "FPPA. mova, 0b00111111;/// 0 movSEG_PORT, a; set1SEG0_COM; set0SEG1_COM; /// TODO set0SEG0_COM; set1SEG1_COM; /// TODO SEG0_COMSEG1_COM displayLoop:"

Similar presentations


Ads by Google