Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Re: Switch Case Doubt????
I want to store two values in different locations of flash memory of microcontroller c8051f120.
I reffered application notes in si labs..but i did nt get ..i am somewhat confusing at addressing modes of flash memory..
kindly help me how to give those flash read ...
I am using this code for flash erase flash write and flash read..
i am storing succesfully in one value by using this instruction. but problem is
i want to store another value in another location of flash memory.. but i am confusing their addresses..
kindly help me..
Plss
Re: Switch Case Doubt????
I tried but not coming.........give me some idea..
i put if(flag == 1)
for(t =0 ; t< 3 ; t++)
l_flash[t] = flash[t];
else
for(t =0 ; t < 3 ; t++)
p_flash[t] = flash[t];
like wise same in h_flash[] and q_flash[]
i took 4
l-flash[]
h_flash[]
p_flash[]
q_flash[]
but...
Re: Switch Case Doubt????
if(flag == 1)
{
if(condition)
}
else
{
}
like that i did
but finally i want to stor those values in flash memory we can take 4 bytes
intially two bytes i did .but problem with flag
if i press 1 store 0 to 20 range values in flash memory
if i press other one 20 to...
Re: Switch Case Doubt????
Thank You Kulakarni...I hope u can understand my task..If u cant understand again i wll tell clearly..
Actually On display first showing 2 modes for 2 options
if u press 1st display 1st
if u press 2nd display 2nd ..but i wrote common range for both modes..
But i want...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.