I suppose to write a program so that it can directly read the accelerometer output on the PIC18f452 and show on the computer. But i had no idea how can i write the program to perform such function. The PIC18f452 is connect to PC throgh MAX232 and DB9 cable.
Can anyone teach me how to write such programming in C++ language (if possible)? Thanks
Microcontrollers use C, not C++. HTSoft's PICC18 and Microchip's free MCC18 are good compilers.
The accelerometer may or may not be readable with the PIC's ADC. The resolution is only 10 bits, it does not have a differential mode, and has a max recommended input impedance of 2.5kOhms.
You will use the 452's hardware USART to perform serial communication.