Soft Reset asm("reset"); Reset Function Generally the C30 will use the startup module to do some setup works. Refer to the device linker script file (p24HJ256GP206.gld), there are something like: OUTPUT_ARCH("24HJ256GP206") CRT0_STARTUP(crt0_standard.o) CRT1_STARTUP(crt1_standard.o) OPTIONAL(-lp24HJ256GP206) The CRTn_STARTUP commands specify two C run-time startup modules to be loaded from archives. The linker will select one of these […]
Category: ~C30 (old)
SPI
SPI Master //—– SETUP SPI 1 —– //Used for: w_temp = SPI1BUF; SPI1STAT = 0; SPI1CON1 = 0b0000001100100001; //SPI in master mode (SPI1STATbits.SPIEN must be 0 to write to this register) //Data is valid on the rising edge of the clock (Transmit occurs on transition from active to idle clock state) //Clock low in idle […]
UART
PIC24 UART Full Duplex https://github.com/ibexuk/C_Communications_UART_PIC24_Full_Duplex