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.
Guys...Now I am getting my SPI output perfectly with CS line too. I have changed spi right code to
unsigned char WriteSPI1(unsigned char Data)
{
// Wait for a data byte reception
while(SPISTATbits.SPITBF);
SPIBUF = Data;
while(!SPISTATbits.SPIRBF);
Data = SPIBUF;
return 0;
}...
Thanks Keith..Now, I am getting good output. But still have problem with CS line. Check below pic. It goes high before 5 byte transfer. Any clue?
The B0 supposed to go high after compete transfer. But it won't.
Here..I got my SPI out using spimpol files from microchip. Thank you guys.
Do anyone tell me how to read this SPI code?
In Image
B0- chip select
B1- SPI clk
B2- SPI out
I am sending 5 bytes. Could you explain this image?
You are right Keith. It doesn't require pps. The book "learning to Fly the PIC24" didn't mention anything about pps while working with pic24 SPI module. But I couldn't figure out why it's not working. FYI IN my application, slave IC don't have SPI out. It means I am only doing one way communication.
Thank you Keith. But even MPLAB logic analyzer won't show me any output. I will try SPI2 and keep post later.
---------- Post added at 02:20 ---------- Previous post was at 02:09 ----------
Thanks Neal,
Are you talking about PIC24F_Peripheral.h? I don't understand this "[/code]
//...
Thanks for reply....I had problem to burn pic16f57...Also RA3 out should be modulated at 36-38khz for IR transmission...I modified this code for PIC18 development board and it's working well....!! :)
Again Thanks..I will post my whole project ltr for others..!!
I have problem with ICSP. I dont hv any idea about hardware configuration to install firmware in PIC16F57. My code runs good in MPLAB simulation.
Attached Schematic.
I am trying to program RC5 remote so I got this schematic from one of the working remote and they used pic16f57 that's why I am...
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.