SPIC and SPID not works!

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey there,
I have been enable and set SPI registers by codewizaed codevision
But SPIC works fine but SPID not works
It means the pin state doesn't change .
I check with digital analyser.
What is the problem??

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For now, the biggest problem is not knowing what chip it is talking about.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kabasan wrote:

For now, the biggest problem is not knowing what chip it is talking about.

Thank you kabasan
It is atxmega32a4u

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you need to set the port pin direction (in/out) or does enabling the spi do that for you?

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:

Do you need to set the port pin direction (in/out) or does enabling the spi do that for you?

 

Jim

 

Yes the mosi and clk are output and miso is input ,
In normally the output pins work well
But the can not show SPI on them
Only registers is need?
I have been set them too.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

The standard reply here is to write a small complete program that demos the problem and post it here using the code editor "<>" in the menu above, so others can see what your doing and make corrections, in most cases doing this exercise, you will discover your problem.

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also Codevision have their own excellent support group, just in case you may have somr older and buggy version.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You might want to post the code that CV generated too.