Search Engine

Spi Code Microchip

Add Question

29 Threads found on Spi Code Microchip
Been working on this for months now, learning from scratch all about programming in C, MCUs, spi, Registers, and now the nRF24 module. I looked at hundreds of codes (I learn through trial and error - get a working code then learn about every part about it by trying things here and there). I finally got to get the spi working (...)
Hello, I am using pic32mx795f512l and i am trying to code for external eeprom (25LC256) to store the last value of LED. I want to use spi communication for EEPROM. I need sample code to done this. Please help me with some sample code. Thanks in advance
I am making a project to find active and reactive value using sa9904 ic with pic16f1939 via spi protocol. Please give me full code to complete my project ,......
Hi, Would think, though have never tried them, using the USART to send the program code to a Bootloader in the
I Converted this microchip sample code to mikroC code but it is not working. What is the problem? //Project: Port Expander //MCU: PIC16F877A //Clock: 8 MHz //Author: Jayanth Devarayanadurga #define I2CMODE 1 #define spiMODE 0 #define WrtCmd 0
Is it necessary to use crystals of similar frequency in spi master slave configuration.....???
the SA9903b uses an spi interface, have a read so a web search for "PIC16 spi" it will give you links to example code
have you looked at microchip's spi example code for the PIC18 on
I have been trying to program for spi communication using the header file provided by microchip.But I am unable to do so.I cant exactly understand how to utilizre the function.Could someone post some sample code that has worked using spi header file spi.h
Hello All, If anybody has already worked on PIC18F67J60 spi kindly share the code. (I want to interface Ethernet, WIFI, EEPROM through spi)
You can search for external Flash @ EEPROM chip that connect with spi @ I2C. Ex, at microchip website you can see the memory product.
Hello, Am interfacing the MRF24j40 microchip rf transceiver with pic 18f4685 with mode 0,0 and Fosc/16, and SMP at END. But i cant find the CLK at the SCK line while running the test program. Here i attached the code. Kindly go through the find the bug. What i have to do with the /ss pin?
hello, I need to interface MRF24j40 microchip rf transceiver which works in spi protocol with my micro controller 89v51rd2. Any body have spi sample c code for this controller. It will be useful for me. Thanks in advance. Regards, Anand.V
see this link compiler is MPLAB IDE with CCS CCS :: View topic - MCP6S28/1/2/5/8 PGA code Here is the pdf for interfacing PIC with PGA through spi Also see the application section of the data sh
Hi, i m trying to make a small code in mplab with a pic16f1824. The problem that i am having, is that when i write the buffer register of the spi (the SSP1BUF) and then i ask (with a while loop) if the transmition had finished, i stay in an infinite loop. I think that my problem is that i m not setting all the pic to work with de spi mode. (...)
Why use an 8255? What is the make and model of the 8051 variant you are using in the design? If your particular 8051 does not have a hardware spi interface you could always bit-bang the spi interface. The following appnote covers both hardware and software interfacing an 8051 with a spi Serial
check this it has sample code at the end....
does the microchip device have a chip select input? If so, leave it active between sending bytes. If it does not work you can always bit bang the spi data. (look at avr320.asm) rw_spi: ldi temp,16 ;init loop counter to 16 bits ;ldi temp,8 ;use THIS line instead if 8-bit desired ; spi_loop: lsl (...)
If you are using the C18 compiler, look in the directory. mcc18/src/pmc_common/spi In 'mcc18/h' directory you will find 'spi.h'
I'm trying to communicate two pics(16f877a) using spi of is very greatful if anyone can help me by giving Microc codes and fin diagram.Please give your guidence for success my project.