

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is assignment solution in form of programming code. This code will be helpful to student of Microprocessor course. It was submitted to Prof. Purumitra Negi at Birla Institute of Technology and Science. It includes: Display, Feilds, Define, Unsigned, Typedef, Pattern, Frequency, Duty, Junk, endif
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


/* termproj.h */ #ifndef _TERM_PROJ_H #define _TERM_PROJ_H #define N_DSP_FLD 5 // number of display fields typedef unsigned char U8; typedef signed char S8; typedef unsigned int U16; typedef signed int S16; typedef unsigned long U32; typedef signed long S32; typedef struct { struct { U8 str_stp:1; U8 junk:5; } bf; struct { U8 line:1; U8 pos:4; U8 wide:3; } df[N_DSP_FLD]; } LCD_STRUCT; typedef struct { U8 str_stp:1; U8 putPtr:3; U8 getPtr:3; } KB_STRUCT; typedef struct { U8 str_stp:1; U8 pattern:2; } DL_STRUCT; typedef struct { U8 str_stp:1; U8 wpm:6; } MC_STRUCT; typedef struct { U8 str_stp:1; U8 intensity:7; } PWM_STRUCT; typedef struct
U8 str_stp:1; U8 pattern:2; } PUL_STRUCT; typedef struct { struct { U8 str_stp:1; U8 junk:5; } bf; U8 frequency; U8 duty; } CLK_STRUCT; typedef struct _cmd // TBD { struct { U8 str_stp:1; U8 junk:5; } bf; U8 frequency; U8 duty; } CMD_STRUCT; #endif