Search found 3 matches
- 03 Jul 2022 18:41
- Forum: mikroC PRO for AVR General
- Topic: SPI and click board usage
- Replies: 3
- Views: 1216
Re: SPI and click board usage
If somebody cares, the solution was to set SS pin as output (so it doesn't block SPI transmit function). The second thing was to read status registers (SR1-6) before altering control registers.
- 30 Jun 2022 15:23
- Forum: mikroC PRO for AVR General
- Topic: SPI and click board usage
- Replies: 3
- Views: 1216
Re: SPI and click board usage
I looked at it, I basically copied configuration (same register values) but still no changes. I have a feeling that I'm not even sending stuff over SPI. This is how it looks after looking at library: sbit Chip_Select at PORTA5_bit; sbit Nxt_Step at PORTD4_bit; sbit Dir_Step at PORTA6_bit; sbit ErrB ...
- 29 Jun 2022 17:10
- Forum: mikroC PRO for AVR General
- Topic: SPI and click board usage
- Replies: 3
- Views: 1216
SPI and click board usage
Hello everyone, first of all I am pretty new at this so maybe these questions look weird but I'm struggling to find a solution. Anyway, I'm using EasyAVR and Stepper 16 click to run my stepper motor but can't get it running, I tried using SPI to alter slave registers in order to set MONTEN=1 (motor ...