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.
It seems that you see the result on ADRES shifted left by several bits. If the conversion is not complete when you try to read the register you may get this kind of results. You need to monitor the flag bit that indicates data is ready to be read. If that doesn't fix it for some reason you could...
Never mind... I fixed it. Apparently I needed to actually send data to the SSPBUF in order to generate the serial clock signal. And then for the correct synchronization I just used the READY signal from my ADC. I'm posting my working code so if anyone is having the same problems they can find a...
SPI read Problem with PIC18F4550
Hello all,
I'm having a problem with the SPI interface on a PIC18F4550. I am trying to read data from a 24-bit A/D converter (ADS1271IPWG4). I have set up the SSPCON1 and SSPSTAT registers and I am sending a byte through the SDO pin to the ADC to produce the...
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.