| FvM 
 
 
 Joined: 27 Aug 2008
 Posts: 2337
 Location: Germany
 
 
			    
 
 | 
			
				| Strange PCD implementation of 24FxxKA chips |  
				|  Posted: Thu Oct 29, 2009 4:57 pm |   |  
				| 
 |  
				| A colleague reported about obscure behaviour of 24FxxKA chips with PCD, that apparently crashed at the first function call. It turned out, that PCD sets the stack to 0x1580..0x15ff, a memory area, that doesn't exist with these chips. 
 You need to specify a correct stack usage explicitely
 
  	  | Code: |  	  | #build(stack=0xd7f:0xdFF) | 
 Also the configuration registers seem to be accessed upside down (according to a recent MPLAB version), so oscillator, watchdog and other settings are completely confused.
 
 There are more flaws as forgotten SPI resources. It's possibly though to use the chip with PCD.
 |  |