We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm trying to fill an array in xdata with zeros as follows:
unsigned char n; //Index to scan the array unsigned char xdata bt[100]; //The array to fill
for(n=0;n<100;n++){ bt[n]=0; }
But when the array size is bigger than 38 elements the MCU hangs. Does anybody know the reason why this happens?
Hi Erik, I did the change, and it worked! I added few rows in ASM to disable WDT and it's working great now. The news that I've got another 1K of RAM sounds amazing for my applications. It look like this RAM is hidden by my ignorance and nothing else. I've looked trough the datasheet of Silab c8051F320 and I've found that this FIFO is under control of USB circuitry hence the USB Clock must be active when operating with such a memory as described here: community.silabs.com/.../70717 However in most of my applications where I need RAM (stand alone projects) I don't have USB clock. Any wolkaround for this?
start the USB clock, that does not start USB. be aware that using the FIFO as RAM is slower than using the 'real' RAM. even better use a chip with sufficient 'real' ram there is a plethora of possibilities