This is my interview questions that I not answered properly

Status
Not open for further replies.

N.Karthick

Junior Member level 2
Joined
Sep 19, 2014
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Tirupur, India
Activity points
166
1. What is meaning to mention 16,18.. In Pic series.
2.how do you check your sensor connected with your pic controller are working properly through cide .
3.write a program to this diagram (diagram is attached with this post).
4.program to find number of zeros .
 

1. PIC16 and PIC18 are just different families of processor from Microchip. Originally PIC16 were all 8-bit registers and used 'banks' and 'pages' to segment the memory while the PIC18 used a linear memory map but there are now some PIC16 'enhanced' devices which can use linear memory as well.

2. That depends on what the sensor is. Typically you provide a calibrated stimulus to the sensor and make sure the reading comes back as expected.

3. The diagram is meaningless without knowing what units the axis is in.

4. number of zeros in what?

For 3 & 4, the correct response in an interview would be to say more information is needed!

Brian.
 
2.how do you check your sensor connected with your pic controller are working properly

Adding a 3rd state on reading, one for "1", other for "0" and another for "NOT connected".

The ausence of any signal is how to determine failure on digital sensor.
The ausence of offset, is how to determine failure on analog sensor.
 

2.how do you check your sensor connected with your pic controller are working properly through code. They take example as LM35.
 

A little bit more information makes all the difference.
The LM35 produces a voltage proportional to temperature so the code would read the voltage and confirm:
1. the voltage changes as the temperture changes
2. it can measure the lowest and highest temperatures anticipated
3. it detects a fault, for example if the sensor became disconnected it should read something 'abnormal' as report something is wrong. For example saying the temperature is -10000 degrees!
4. if units conversion is used (C/F) it should be mathematically accurate over the full temperature range.

Brian.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…