Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

sw SPI - how to read MCP3004

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-8051
View previous topic :: View next topic  
Author Message
Brigantus

Bascom Member



Joined: 28 Nov 2015
Posts: 2

PostPosted: Sat Nov 28, 2015 10:15 pm    Post subject: sw SPI - how to read MCP3004 Reply with quote

Hello to everybody Wink

Im beginner with MCU programming and I need help for my project. I need to convert analog to digital value using: ADC MCP 3004 with MCU AT89s52.

My ADC is SPI supported and since my MCU doesnt have SS pin I cannot use it for HW SPI communication,right??

I need to configure it with SW SPI, so can someone explain me how to do it and does it work good as HW SPI?
Back to top
View user's profile
Brigantus

Bascom Member



Joined: 28 Nov 2015
Posts: 2

PostPosted: Tue Dec 15, 2015 11:43 am    Post subject: Reply with quote

Nobody Crying or Very sad

Does Shiftout and Shiftin in Bascom supports multiple variables to be accessed? Something like in Basic Stamp SHIFTOUT MOSI, SCLK, MSBFIRST, [var1\8,var2\8,var3\8].. Idea
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-8051 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum