Hello, I have a setup that I am working on for students to learn about analog to digital conversion. Basically, I have a variable voltage being converted by the onboard analog to digital convertor of a PIC16F88. This PIC has 10 bit A/D. I then want to be able to convert this 10 bit sample variable into 8 bits, and then send these 8 bits out a Port to a 'parallel in' digital to analog convertor (8 inputs for the 8 bits). Basically, I want my students to learn the limits of the PIC analog to digital conversion.
Does anyone have some clever ideas on how to convert 10 bits to 8 bits without the use of floating point variables? Simply dividing by 4 to shift the answer 2 bits works in real life, but without floating point and a limit of 16 bit variables, I am stuck.
Thanks.
Bookmarks