Hi! I have some troubles with SiLabs c8051f041. I try to start very simple program - flashing one led on gpio. I use Keil CA51 Compiler Kit. Program succesfully compilates without errors. Then I program my chip c8051f041 with BeeProg+ programmer. When programming is succesfully finished, I try to power ON my chip. And nothing happened... I don't understand what I am doing wrong?
Another common reason for seeing an I/O pin having a voltage somewhere in the middle is when it's an input, or tristated output, without any pull-up/pull-down to hold it properly to VCC or GND.
That would happen if your initialization fails to set it as an output, or if the processor fails to run any program at all.
Why " the processor fails to run any program at all"? What's reason of it? My initialisation is wrong or chip is damange? I was try it on three chips, not only one. I want to see at least out of SYSCLK on pin where is he must to be. Becous it confirm the SYSCLK running.
I do not see you enabling the crossbar, any bit in the xbr registers is irrelevant till you enable the crossbar (xbr2.6 / BBARE)
Erik
I forgot write it. On this notebook I have not Keil IDE fnd I wrote what I remember. Of course, I enable the crossbar at the end of initialisation of ports.
XBR2 = 0x40;
.
I wrote what I remember. numerous hhreads have gone waaay astray because someone "wrote something" instead of copying actual code. Please refrain from doing so
I'm sorry. I tried to test the controllers in the workplace and after the failure at the weekend decided to ask for help. This does not excuse my confusion, but I would like to solve this problem by Monday, but the code remains at the working computer.