Search Engine

Pic And Spi

Add Question

226 Threads found on Pic And Spi
I am trying to connect my pic to RTC. The RTC I am using is DS1302 with only one pin for both (Input and Output). I am trying to simulate it using PROTEUS. The problem I am facing is how can I connect pic two pins i.e. SDO and SDI to one pin (I/O) of RTC? ScreenShot is here 136371 If i make SDO or SDI pin somehow "IN-
Be careful when debugging the SSPBUF register as it is not a 'standard' SFR. What you read is what the spi peripheral last received - and a second read may or may not return the same value (this behaviour is undefined for (nearly) all of the pic chips of all families). It is almost certainly not what you would have written (...)
Hello! My pic runs at 32MHz. How much us would it take to read a block? What block size? It depends on the spi flash and also how you program your ?P. If you use a 80 MHz flash in spi, then you can read 10 MBytes per second (in regular spi). As many chips have blocks of 256 bytes (some are 264), (...)
i want to interface both spi and i2c devices in same pic microcontroller suppose if we have a possibility to change pins of i2cAt first sight, you could share the Data pin for both, but Clock pin should be dedicated for each one, summing therefore 3 pins for both devices.
I tried using: spi Master to Slave MISO MISO MOSI MOSI SCK SCK EN CS or spi Master to Slave MISO MOSI MOSI MISO SCK SCK EN CS .... I have changed the directive to "#use spi (MASTER, (...)
Hello! I'm trying to connect to the microcontroller pic12F1822 to the DAC MCP4921, and temperature sensor TC72 with LCD display. But it looks like the conflict in the code is obtained with a display or a temperature sensor. I want to ensure that when a certain temperature DAC gave the correct voltage. I have a table of values depending on the v
(1) How can spi multiplex SDI and SDO and use same pin for both since data is only clock at a single edge on both pins? I read the datasheet for MCP4131 for the first time and have been introduced to the concept of multiplexing SDI and SDO. The datasheet gives diagram for how this component maybe connected (...)
Hi, * Read datasheet of 595 about voltage and timing * Read pic datasheet spi section (If you pic donīt have spi, then read about software bit bing spi) * Now you should be able to draw a schematic * This is discussend many times in this forum. Please do a search "pic (...)
Hi all.. I am doing a project using pic167873a interfaced with GSM and GPS.The GSM module is interfaced with pic using UART. We are using mikroC. Not getting codes for GPS interface using spi. thanks in advance
Dear All I have attached a Block diagram of Cypress to pic controllers having 10 GPIO and 1 UART connections. Now i am confusing between the Connections. Cypress is having High sink current capability at the gpios. same gpio status going to pic controller to check the status of the Capsense and accordingly (...)
Hi all , I have written code for pic18LF24K22 to work as slave. When I sent data from spi master(CHEETAH Adaptor) it is not able to receive the data. So I checked input functionality of receiving pin by just forcing vdd to that pin and checked the port value in register , it was showing 0. So same thing i tried on my (...)
Hai all Now i am designing Annunciation system so i need to interface 42 input signals ( 5 volt inputs) to my pic IC. So How can i connect this much inputs to pic Any decoder/ encoder is available ? or any other methods ? Have anybody circuit diagram for the same Please Help me... Thanks Saneesh George
Hello , Since I am very new to microcontroller, can anyone please send example code on spi of pic18f45k20.??I am using MPLAB IDE and pickit debugger. My actual task is as given below. Here pic should act as slave and the soon it receives command from other (...)
pic32 has dedicated CLR, SET and INV registers associated with each port register, e.g. LATB, so that setting or resetting port bits can be performed in a single instruction. Enabling prefetch and caching is necessary nevertheless.
Hi, GND and VCC should be clear. MOSI, MISO, SCL also. CE0 is the chip select for the spi interface. Connect it to a pic output port. RST is the reset pin. If you need the reset function then connect it to a pic output port. INT is the interrup out of RC522. If you need it connect it to a pic interrupt (...)
Hi, I got a new probleme now on my ds33fj128mc802. when a try to send some data on my spi whith a variable my pic crash char dataLength=8; spi1_Write(dataLength); //will not work spi1_Write(8); //will work I dont know why it crash, it try to do some test and still now working :(. I (...)
Hi spi & USART are same. If you made any usart communication program. You should follow that proceeder. I'm sorry but spi and USART are most certainly NOT the same. spi uses the MSSP peripheral which is quite different to the USART peripheral. Also the means of communication are different as are the hardware l
Hi, The pic 18f4450 and the vinculum vnc1l controller are connected via the spi interface like this (signals are in the point a view of the pic): clk => rb1 - output cs => rb2 - output sdi => rc7 - input sdo => rb4 - output I connect my logic analyzer to these signals to see what is happening and (...)
Where to find the C/C++ Library files with samples and good explanation and easy to understand of all the commands which we need to use as a reference to program Microchip Microcontrollers (pic16f877a as example) for spi, Sensors reading data, Uart and Ultrasonic Sensor? (...)
Why there is some error in spi communication ? See image. It only happens the first time communication is done. After that it works fine. I am testing it in both Proteus and hardware and I see same signals on both. In hardware I am using 2 x Easypic v7 development boards and Saleae Logic Analyzer. What (...)