Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi
I am using CCP Module of PIC18f46k22 to generate PWM signal on CCP2 (Pin no 16) . All is working well if i load values only in CCPR2L register in run time and load the value in CCP2CON at starting of program.
but when I try to change the value of CCP2CON while running then there is no PWM on...
Thanks @KlausST @FvM @Aussie Susan
You are right before sending the command from Master I have to load the response in Slave.
I have done like that and it is working now.
73 belongs to Char I, 72 belongs to char H
The pattern have to be like this ----- dummy value (10), then H, then I
But I am receiving like this ----- I, then dummy value (10) and then H
I am not getting this what mistake I have made.
https://deepbluembedded.com/spi-tutorial-with-pic-microcontrollers/
https://www.microchip.com/en-us/product/pic18f46k22#document-table
from here you can find out the datasheet.
I tried to make a program as follows
First Master send RESET_POSITION command (RESET_POSITION = 1, when slave...
Yes I read some articles about SPI.
I tried polling based communication and in that Master every time send data to slave in order to receive all the bytes.
Now I was implementing the interrupt routine.
Clear me 2 things
1- when Master sends data then Clock signal also be generated. right? Not...
Hi Guys
I am using two PIC18f46K22 microcontrollers with MPLAB XC8 IDE.
I write a code in which Master sends 1 byte and in return I am receiving 1 byte and display it on LCD. It is working fine. I am receiving from slave letter "H" and displaying it on LCD as the following image shows.
Now I...
Hi
I want to do some certifications related to embedded systems like RTOS, IoT, USB etc.
Kindly tell me some platforms from where I can do these.
I am doing some courses from Udemy, Can I add these certificates from this website to my resume?
Hi
I am going to print some values using usart port. I am using pic18f46k22 microcontroller along with mplab XC8 compiler.
This micorcontroller have two usart ports.
normally the microcontroller which have only one usart port, we can print like
printf("%u",value);
and we don't have to define...
Hi Guys
I am not sure if it is the right forum to ask this question or not but I want to know that what this pattern is called? Its the inside of casing.
Why we use these patterns and if required then are there any rules or calculations involved?
Hi
I am working on interrupts and without settings the priorities of interrupts the code is working fine. following is the code without defining priority of TIMER3 interrupt.
void __interrupt() ISR(void){
//===Timer3 Interrupt Routine============================================//
/*...
Hi
I am using pic18f46k22 and using ADC module of it. Was reading the registers required for setup and stuck on one register.
ADCON1 bit 7 says its TRIGSEL bit
TRIGSEL: Special Trigger Select bit
1 = Selects the special trigger from CTMU
0 = Selects the special trigger from CCP5
is it...
HI guys
I am doing USART communication between two microcontrollers, one is PIC18f46k22 and other is PIC16f883.
PIC18F46K22 is running on internal oscillator with system clock of 16Mhz. USART communication uses Asynchronous Mode with Baud Rate of 9600.
PIC16F883 is running on internal oscillator...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.