Introduction to C Language Learned with PIC by Toshinori Fujii
English | May 24, 2022 | ISBN: N/A | ASIN: B0B296GJ8J | 140 pages | EPUB | 8.80 Mb
English | May 24, 2022 | ISBN: N/A | ASIN: B0B296GJ8J | 140 pages | EPUB | 8.80 Mb
The PIC microcontroller is so typical that it is called PIC16F84A. The PIC16C84 has been on the market for about 30 years, but it continues to be released with improvements. Microcontrollers are connected to all kinds of electronic devices, especially in cars, which have dozens of microcontrollers and are almost robotic.
Various microcontrollers are available to learn the basics of embedded microcontrollers in electronic devices that we use casually. PIC microcontrollers are relatively cheap and can be used for a variety of experiments if a writer is purchased.
In addition, free software called MPLAB can be downloaded from Microchip, which allows the C language to be handled, so there is no need to purchase software. Previously, C software for PIC microcontrollers was quite expensive.
Therefore, in this book, you can study the basics of learning and experimenting with microcontrollers as the foundation of the IoT, from the introduction of MPLAB to the production of PIC microcontroller line tracers, in sequence. Exercises and experiments will be carried out so that you can learn in an easy-to-understand way.
Table of Contents
Introduction
1. Basic use of MPLAB
1.1 MPLAB
(1) Download
(2) Installing MPLAB
(3) Installing the XC compiler
(4) Launching MPLAB
1.2 PIC16F84A
1.3 How to use the PIC C language
(1)Initialization
(2)Programme for LED lighting
(3)Writing to PIC16F84A
(4)LED lighting experiment
2. Programming and experimentation in C
2.1 LED lighting
(1)One LED on PORTB
(2)Two LEDs on PORTB
(3)Two LEDs alternating on PORTB
(4)Two LEDs alternating on PORTB-2
(5)Four LEDs in sequence on PORTB
(6)Binary number display on PORTB
(7)Four LEDs in sequence on PORTB-2
(8)Four LEDs in sequence on PORTB-3
2.2 Tact SW input
(1)Connect SW to PORTA and turn on LED
(2)Connect SW to PORTA and turn on LED-2
(3)Connect SW to PORTA and turn on LED-3
(4)Connect another SW to light two LEDs
(5)When the SW is turned from on to off,
the two LEDs blink
(6)LED blinking speed changes
when SW is turned from ON to OFF
(7)Two LEDs light up with two SWs
2.3 Sound output
(1)Output sound from piezoelectric speaker
(2)Sound C D E F G A B C
(3)While the switch is pressed, C is sounded
(4)Each press of the switch outputs
C D E F G A B C in sequence.
(5)Play music
2.4 Servo motor
(1)Control at 0° position
(2)Position control of servo motors with switches
(3)Position control of servo motors with switches-2
(4)Position control of servo motors with switches-3
2.5 Sensors, etc
(1)Full Color LED
(2)CDS sensor (brightness sensor)
(3)Distance Sensors
(4)Photo Reflector
3. Making a Line Tracing Robot
Postscript
4.References
Feel Free to contact me for book requests, informations or feedbacks.
Without You And Your Support We Can’t Continue
Thanks For Buying Premium From My Links For Support
Without You And Your Support We Can’t Continue
Thanks For Buying Premium From My Links For Support