• AVR Freaks

[Easy Question] SPI configuration with PPS not working [Solved]

Page: < 12 Showing page 2 of 2
Author
pedro.duarte
Starting Member
  • Total Posts : 73
  • Reward points : 0
  • Joined: 2007/03/26 15:30:25
  • Location: 0
  • Status: offline
Re: [Easy Question] SPI configuration not working 2017/01/15 03:58:44 (permalink)
+2 (2)
Just so that this thread becames useful to anyone starting with this new chips: 
 - in order for this to work you also have to disable analog input ports on the SDI and CLK pins.
 
Without this, you won't be able to receive any messages. Code for the example on this thread:
 
//Disable analog inputs on clk and sdi
ANSELBbits.ANSELB3 = 0;
ANSELBbits.ANSELB5 = 0;
 
Note: This chip is great. It has IOC on all pins, internal 64Mhz osc and PPS for flexible layout at a super low price. I'm really happy with it.
#21
Page: < 12 Showing page 2 of 2
Jump to:
© 2020 APG vNext Commercial Version 4.5