multithread

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

hi

   

I am using a PSOC cy8c29466 collecting data from a spi adc. I am bit bashing the IO to generate the SPI interface. my question is

   

can I get the this route to run alone in a single thread  and store the values in registers. and write another thread for the uart to read the registers. or is this PSOC single thread only?

   

regards

   

Ross

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum, Ross!

   

Multi-threading requires an RTOS (Real-Time Operating System) which is a bit difficult to make with only two registers and a stack pointer  on an 8-bit cpu, I would really suggest you to use a more modern PSoC like the PSoC4-M which comes with a prototyping kit and a pioneer kit. Both boards allow for debugging which is not as easy in the world of PSoC1.

   

 

   

Bob

0 Likes