|
![]() MCU User Forum
![]() port P0 error
|
| next newest topic | next oldest topic |
| Author | Topic: port P0 error |
|
msa New Member |
Hi all I am new user for Silicon Lab I have C8051f350-TB 1) i need Assembly language documentation for C8051f350. 2)I need to toggle LED 1 using assembly language ////////////////// [This message has been edited by msa (edited August 06, 2010).] IP: Logged |
|
Scotty Member |
Hi msa, 1) i need Assembly language documentation for C8051f350. 2)I need to toggle LED 1 using assembly language I have C8051f350-TB... You see, comments might be helpful, at least for you, but surely for others to realize what your code does and what it should do. Regards, Scotty IP: Logged |
|
erikm Member |
when i execute this code code???? last I heard code had indentions and comments Erik IP: Logged |
|
picperson Member |
Well done for having a go with assembler. Documentation on assembler for a specific MCU your not going to get. A good book for the 8051 MCU on which the F350 is based is 'The 8051 Microcontroller' by Kenneth J. Ayala, get the second or third edition. This is aways available on Ebay and possibly free download if you do a web search. Have a look though the application notes in Silicon Labs Support..Documents and Knowlege base on how to use individual peripherals ect. Take the advice of both scotty and erikm, cut and paste your code from the IDE to your post so everything your doing can be seen, errors often are found in the intialisation of the MCU which you have not given. $NOMOD51 $include (c8051f350.inc) ; Include register definition file. ;----------------------------------------------------------------------------- GREEN_LED equ P0.7 ; Green LED: '1' is ON ;----------------------------------------------------------------------------- ; Reset Vector ;-----------------------------------------------------------------------------
rseg Blink ; Switch to this code segment. Main: ; Enable the Port I/O Crossbar ; Initialize LED to OFF ; Simple delay loop. ;----------------------------------------------------------------------------- END
Mike [This message has been edited by picperson (edited August 07, 2010).] IP: Logged |
|
msa New Member |
Hi all I solved my error see my code
[This message has been edited by msa (edited August 10, 2010).] IP: Logged |
|
vanmierlo Member |
Indent by using the tab NO, don't do that! The forum (and html) will not know what to do with them. Always use spaces to indent when posting to this (any?) forum. Unfortunatley this cut and paste has taken all the indentation/alignment out and I am not smart enough to know if it is possible to cut and paste whilst keeping it in!! For the umpteenth time: put the code between <pre> and </pre> to preserve the indentation in this (any?)forum. Btw. "I" and "am" are two words. Maarten IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?