This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

bit addressable area of LPC2368

Hello Sir,

I am using LPC2368 controller in my project My project have some 1-bit flag as shown in following code flag number 1 to 22 working properly means writing 0 or 1 has affect on that.
But when I write 1 value to flag there is no change in flag.when i declare flag number ,23 ,24 ,25 of 1 byte seperately instead of using in this structure they are working properly i just want to confirm that is there is any bit addressable area in LPC2368 I checked the memory map of my project i sae that genflag structure is stored at 0x40000128 address and it is taking 12 byte why it is taking 12 byte?

struct flag{
unsigned fill_start:1;  //1
unsigned pow_pap_feed:1; //2
unsigned fl_print_start:1;
unsigned fl_stop_print:1;
unsigned fl_pap_sensor:1;
unsigned fl_platen_out:1;
unsigned fl_cutr_acc_ON:1;
unsigned fl_const_speed:1;
unsigned fl_line_print:1;
unsigned fl_start_print:1;
unsigned fl_pf_only:1;
unsigned fl_start:1;
unsigned fl_mt_accer:1;
unsigned fl_mt_deaccer:1;
unsigned fl_phase_rev:1;
unsigned fl_half_cut:1;
unsigned fl_home_position;
unsigned paperout:2;
unsigned fl_tempabove_80:1;
unsigned fl_recive_enable:1;
unsigned fl_init:1;
unsigned fl_stop_receive:1;  //22
unsigned fl_ESC_command:1;//23
unsigned fl_GS_command:1;//24
unsigned receive_cmd_arg:1;//25
unsigned wait4chartimeout:1;//26
}genflag;

Thanks & Regards
Rohit

0