Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mr. Banyat Somsupan ubonTecnical Unit 2. Electronic Ubontecnical.

Similar presentations


Presentation on theme: "Mr. Banyat Somsupan ubonTecnical Unit 2. Electronic Ubontecnical."— Presentation transcript:

1 Mr. Banyat Somsupan ubonTecnical Unit 2

2 Electronic Ubontecnical

3 2 2. next

4 Electronic Ubontecnical 3 4

5 Electronic Ubontecnical 5

6 6 Next

7 Electronic Ubontecnical 7

8 8 9

9 10

10 Electronic Ubontecnical 11 12

11 Electronic Ubontecnical 13 14

12 Electronic Ubontecnical 15

13 Electronic Ubontecnical 2 New Project

14 Electronic Ubontecnical 3 Next

15 Electronic Ubontecnical 4 5 Folder 6 Drive C 7 Make New Folder

16 Electronic Ubontecnical 8 9 OK 10 Pic 11 Crystall 12 Next

17 Electronic Ubontecnical 13 Next

18 Electronic Ubontecnical 14

19 Electronic Ubontecnical 15 Finish

20 Electronic Ubontecnical Code C

21 Electronic Ubontecnical 1 Code 2 Build.hex 3 Successfully

22 void main(void) { TRISB =0; // make Port B an output While ( 1 ) // repeat forever like while(ture) { PORTB = 0x55; delay_ms(1000); PORTB = 0xAA; delay_ms(1000); } Write a MikroC for Pic program to toggle all the bits of port B Electronic Ubontecnical

23 void main(void) { unsigned char z; TRISB =0; // make Port B an output while (1); // needed If running in hardware { for (z=0;z<=255;z++) PORTB =Z; delay_ms(500); } Write a MikroC program to send values 00-FF to port B Electronic Ubontecnical

24 Mr. Banyat Sosupan Electronic Ubontecnical


Download ppt "Mr. Banyat Somsupan ubonTecnical Unit 2. Electronic Ubontecnical."

Similar presentations


Ads by Google