Embedded Software Developer Interview Questions

4,748 embedded software developer interview questions shared by candidates

There is an 8 bit counter that is incremented by hardware every tick call it counter8 And there is an interupt handler that is called every tick. I should write the code for the interrupt handler to implement a 16 bit counter.
avatar

Embedded Software Developer

Interviewed at Nuvoton

3.9
Feb 8, 2018

There is an 8 bit counter that is incremented by hardware every tick call it counter8 And there is an interupt handler that is called every tick. I should write the code for the interrupt handler to implement a 16 bit counter.

Given are two functions. One function writes to the shared memory using the function write_to_mem() One function reads from shared memory using the function read_from_mem() We also have a 8 bit variable sem. First function can set/clear only the first bit of sem (msb), indicating it just wrote to the mem. Second function can set/clear only the last bit of sem (lsb) indicating it finished reading from mem. Both functions can read both bits. The two functions might run on different processor with different frequencies. Processor 1 runs a code that call the first function in en endless loop Processor 2 runs a code that call the second function in en endless loop. I need to write the code in each processor such that the functions are synchronized.
avatar

Embedded Software Developer

Interviewed at Nuvoton

3.9
Feb 8, 2018

Given are two functions. One function writes to the shared memory using the function write_to_mem() One function reads from shared memory using the function read_from_mem() We also have a 8 bit variable sem. First function can set/clear only the first bit of sem (msb), indicating it just wrote to the mem. Second function can set/clear only the last bit of sem (lsb) indicating it finished reading from mem. Both functions can read both bits. The two functions might run on different processor with different frequencies. Processor 1 runs a code that call the first function in en endless loop Processor 2 runs a code that call the second function in en endless loop. I need to write the code in each processor such that the functions are synchronized.

Viewing 101 - 110 interview questions

Glassdoor has 4,748 interview questions and reports from Embedded software developer interviews. Prepare for your interview. Get hired. Love your job.