Discussion in "Electronics" started by    Ritesh    Aug 29, 2006.
Tue Aug 29 2006, 03:58 pm
#1
hi i am Ritesh Jain..just a new students of electronics :bye
i want to make future on embedded electronics. but since the world is not enough
there are lot of choices. lot of microcontroller lot if compilers..
so i want to knot the perfect right combination to grow..
i did lot of work in electronics hardware. but jut starting to programming
i have played with both PIC(16F84A) and 89c51 series / AVR
so tell me what is the best microcontroller i should choose and the compiler
i have used bascom for 89c51..and it seem very easy
but there are also some choices like asm , and c programming
so i am very confused..
please tell me the most powerful microcontroller and compiler
which i should study and which help to make my future
:/
Tue Aug 29 2006, 11:47 pm
#2
hi ritesh
thats good u have tried many microcontrollers
first u should have idea when to apply assembly and c
for a developer both languages are compulsary u can not compete with single language
comming to u r next question the best microcontroller in pic is
pic16f877 this ic is best for learning as well as for development
according to me the best compiler for learning embedded c is keil but keil dosent support pic so u can learn embedded c on 89s series as it support ISP
Wed Aug 30 2006, 02:24 am
#3
hi ritesh welcoem to Rickey's Forum
ok here is the answer:
Best book/refrence: The Data sheet of the component you are using
Best Architechure: ARM(32-bit) and AVR(8-bit)
Best Compiler to learn: any GNU based copiler, coz thisgonna help you in future.

any more help please post!
Mon Sep 04 2006, 03:10 am
#4
hey ritesh as u told that u have tried bascom compiler,for 89c51 if u have few basic examples for bascom please share with us
like led blink
lcd ..:)
thanks in advance
Mon Sep 04 2006, 11:08 pm
#5
from my site i will advice u to go with pic microcontroller. a lots of options. here ur lcd with 89c51.
Tue Sep 05 2006, 12:37 am
#6
thanks masud
i have tried to run it on practical one but i was'nt getting any thing on lcd
one of the reason for this is hard ware
the lcd is connected on following pins
db0-p1.0 .......db7-p1.7
rs-p3.5, r/w-p3.4 ,E-p3.3
i tried to change it :laugh
but was unable to do so
thanks again for u r support
programs looks good and it will be really usefull


[ Edited Tue Sep 05 2006, 12:39 am ]
Tue Sep 05 2006, 12:30 pm
#7
I am new in programming .. and because of this .it is very important that the software should be easy an simple..
and i found that the BASCOM is the most simple and very powerfull compiler..
it is so easy to understand and also has intregated simulator..
example..( if u want to use 2*16 lcd, just configure in to tool option with pin no..and it's done.. and to show on lcd jut write lcd " your text" ..for clear jus write cls..very simple
following are the some details of it
.
BASCOM-8051® is a Windows BASIC COMPILER for the 8051 family.
It is designed to run on all versions of MS Windows (W9x, NT, 2000, ME and XP) and has all the features of BASCOM LT.
In addition it has full support for arrays and the single floating point type.
Key Benefits

* Structured BASIC with labels.
* Structured programming with IF-THEN-ELSE-END IF, DO-LOOP, WHILE-WEND, SELECT- CASE.
* Fast machine code instead of interpreted code.
* Variables and labels can be as long as 32 characters.
* Bit, Byte, Integer, Word, Long, Single and String variables.
* Compiled programs work with any 8051 uP such as AT89C1051, AT89C2051, 8031, 8032, 8051, 8052, 80552, 80535 and 80537 m Processors.
* Statements are highly compatible with Microsoft's VB/QB.
* Special commands for LCD-displays , I2C chips and 1WIRE chips.
* Integrated terminal emulator with download option..
* Integrated simulator for testing.
* Integrated flash programmer and support for SPI, PG2051, PG302, SE512, SE514, TAFE. (hardware can be purchased separately)
* Editor with statement highlighting.
* Context sensitive help.
* For compatibility with BASCOM LT, there is also a 32-bit version of the BASCOM LT compiler.
* FREE Internet Auto Update facility built into software means you can always have the latest program version
* Try it before you buy it! Get the DEMO VERSION now!


The following statements are supported :

Decision and structures
IF, THEN, ELSE, ELSEIF, END IF, DO, LOOP, WHILE, WEND, UNTIL, EXIT DO, EXIT WHILE, FOR, NEXT, TO, DOWNTO, STEP, EXIT FOR, ON .. GOTO/GOSUB, SELECT, CASE.

Input and output
PRINT, INPUT, INKEY, PRINTHEX, INPUTHEX, LCD, UPPERLINE, LOWERLINE,DISPLAY ON/OFF, CURSOR ON/OFF/BLINK/NOBLINK, HOME, LOCATE, SHIFTLCD LEFT/RIGHT, SHIFTCURSOR LEFT/RIGHT, CLS, DEFLCDCHAR, WAITKEY, INPUTBIN, PRINTBIN, LCDHEX, OPEN, CLOSE, DEBOUNCE, SHIFTIN, SHIFTOUT.

Numeric functions
AND, OR, XOR, INC, DEC, MOD, NOT, ABS, BCD.

I2C
I2CSTART, I2, I2CWBYTE, I2CRBYTE, I2and I2CRECEIVE.

1WIRE
1WWRITE, 1WREAD, 1WRESET.

SPI
SPIINIT, SPIIN, SPIOUT.

Interrupt programming
ON INT0/INT1/TIMER0/TIMER1/SERIAL, RETURN, ENABLE, DISABLE, PRIORITY SET/RESET, COUNTERx, CAPTUREx, INTERRUPTS, CONFIG, START, LOAD.

Bit manipulation
SET, RESET, ROTATE, BITWAIT.

Variables
DIM, BIT , BYTE , INTEGER , WORD, LONG, SINGLE, STRING , DEFBIT, DEFBYTE, DEFINT, DEFWORD.

Miscellaneous
REM, ' , SWAP, END, STOP, CONST, DELAY, WAIT, WAITMS, GOTO, GOSUB, POWERDOWN, IDLE, DECLARE, CALL, SUB, END SUB, MAKEDEC, MAKEBCD, INP,OUT, ALIAS, DIM , ERASE, DATA, READ, RESTORE, INCR, DECR, PEEK, POKE, CPEEK, GETRC5.

Compiler directives
$INCLUDE, $NOINIT, $BAUD and $CRYSTAL, $OBJ, $SERIALINPUT, $SERIALOUTPUT, $ROMSTART, $RAMSIZE, $RAMSTART, $MONSTART, $IRAMSTART, $DEFAULT XRAM, $ASM-$END ASM, $LCD.

String manipulation
STRING, SPACE, LEFT, RIGHT, MID, VAL, HEXVAL, LEN, STR, HEX
To make a program takes just a few steps :

* Write the program in BASIC
* Compile it to fast machine binary code
* Test the result with the integrated simulator (with additional hardware you can simulate the hardware too)
* Program the chip with one of the integrated programmers.
(hardware must be purchased separately)


Write ( first picture)

The program can be written in a comfortable MDI colour coded editor.

Besides the normal editing features, the editor supports Undo, Redo, Bookmarks and block indention.

BASCOM-8051 BASIC Compiler

Simulate (second picture)

The simulator lets you test your program before writing it to the uP.

You can watch variables, step through the program one line at the time or run to a specific line, or you can alter variables.

To watch a variables value you can also point the mouse cursor over it.

BASCOM-8051 BASIC Compiler ( third picture)



A powerful feature is the hardware emulator, to emulate the LCD display, and the ports. The LCD emulator also emulates custom build LCD characters!

BASCOM-8051 BASIC Compiler


Burn(fourth picture)

When you are done with the simulator it is time to program the chip using one of the supported programmer drivers.

BASCOM-8051 BASIC Compiler







Tue Sep 05 2006, 12:32 pm
#8
here are som sample program


Ritesh
!dance
Tue Sep 05 2006, 06:38 pm
#9
thanks ritesh for ur valuable help
Wed Sep 06 2006, 04:34 pm
#10
u are welcome
i have both 8051 and AVR comiler..works perfectly..
i think the 8051 series will overtake by AVR's

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am