Result: Showing a Raw ADC Result from the Pressure Sensor with Unexpected Runtime Error
Share
When the pressure sensor is tested to see the raw ADC 10-bit data on the LCD, the actual data did not appear. In the program, the bitwise operation for shifting and setting the ADEN (ADC Enable) to 1 was not correct. The shift operator uses two less than symbols and the program only had one less than symbol. It was a runtime error rather than an error at compile time is because the singe less than symbol is a valid symbol and valid in the context.