Lets look at USART module in pic microcontroller (uart module).
I’m going to move by two ways:
1. Using existing functions from hi-tech compiler.
2. Writing my own functions.
Lets look at USART module in pic microcontroller (uart module).
I’m going to move by two ways:
1. Using existing functions from hi-tech compiler.
2. Writing my own functions.
As you can understand from title, this article is short manual about assembling of device which allows to make connection between your uart device and a PC by COM port.
I choose software realization of I2C protocol as the next experiment. There isn’t description of this protocol, only realization, google has a lot information of i2c 🙂
So:
Goal: To make connection between PIC16f628a and IO port expander PCA9539 by i2c
What we have: PIC16f628a, PCA9539, devboard.
Goal: To write and read EEPROM
What we have: PIC16f628a and simple devboard.
Microcontroller PIC16f628a has 128 bytes of EEPROM memory on board, not too much but we have what we have. Hi-tech PICC compiler has internal functions for work with EEPROM, but here I’m going to make some my personal functions.
Let’s look at the EECON1 register:
Today, I’m going to continue learn CCP module and focus at PWM mode.
Goal: to change led brightness with help of PWM.
What we have: PIC16f628a and simple devboard + proteus.
In this experiment I’ll try to investigate beatiful module which has name CCP (Capture/Compare/Pwm).
Let’s start!
From it’s name we can conclude, the module can:
1. To capture
2. To compare
3. To make pwm based waveform 🙂
Goals: To get 1 KHz pulses.
What we have: PIC16f628a and simple devboard + proteus.
Timer2 module TMR2 is 8 bit timer with some features: