Monday, December 1, 2008

Interfacing LCD Module by BASCOM AVR --- SIMPLE !!!

BASCOM has build-in library for standard LCD module interface, setting in IDE as:


Connection is simple for 4-bit bus as:

Tuesday, November 25, 2008

Samsung S3c2410 Board --- Run Linux on your TV !!!

I got this board about 1 year ago. I run Linux (pre-load) and can use your TV as display device.

1. S3C2410A used as the main controller chip (A-type for mass production, X-BUG-A in on the amendment)

2. Interfaces are all located in the side of the circuit board, user-friendly installation directly.

3. Board long 18.00cm, wide-11.00cm, width ratio close to the long golden ratio, making the user's device can be the smallest in the area have a better look

4. TV and VGA interface, the stability of the TV / VGA output functions can be done on display in 800X600 resolution does not flicker on television can output a stable image 4. SD card interface (in the back)

5. Two RS232 serial port (at the plate after a DB9 interface leads, and the other with on-board raises from the pin 2.54mm)

6. Audio output interface and a microphone input interface

7. The two main USB interface (HOST), a USB interface from the (Device)

8. In the on-board raises LCD touch screen and full-featured interface

9. SPI / IIC interface

10. 16 data bus, 21 address bus CPU bus interface

11. 4 Channel, 10bit ADC input interface

12. JTAG debug access / Programming Interface

13. 8 button keyboard interface (one of the keys is reset button, the button can have another 1x7 to 7x1 or a combination of a variety of mix and match)

14. RJ45 10BASE-T Ethernet interface

15. IDE interface with the expansion of the capacity expansion bus interface, the IDE drive is currently not yet completed

16. To use as a development board, with Samsung's 64MB NAND FLASH, 64MB PC133 SDRAM (32bit)

Later I will show you the real time operation of it...

Thursday, November 20, 2008

Serial One Pin LCD Module by 89C2051

There years ago, I am working on several design related to a tiny but powerful MCU 89C2051.

Interface a 16x2 character LCD module by 89C2051 and programed by BASCOM 8051.

89C2051 as the LCD Module interface controller so that I can use only one pin to put ALL LCD module command to the LCD Module. I think this idea is great and start to make:
  • Serial One Pin LCD Module with several options
  • Serial One Pin keyboard matrix reading
  • Serial One Pin I/O expander
  • Serial One Pin 4-digit LED display (7-segement Read LED unit)
Even I build them as Kit and sell in eBay until I have no time to manage them!

Blind man's watch by Voice MCU

I am working in a Toy manufacturer now and have any chance to get Voice MCU running at 4-bit or 8-bit core. It is really low cost when during mass production.

However, I find that there are several IC manufacturer proivde OTP (One Time Programing) Voice MCU whicch is very suitable for Low volume production and Hobby purpose.

APM020 is a very good example:
It consists:
  • 20 sec. voice sound (can direct input wave file)
  • Maximum 12 Input/Output pin.
  • RISC MCU structure running at 45MHz !!!
  • Easy Handle at DIP package.
I have an idea to build a Blind man' watch by it.

Any comment?

Saturday, November 15, 2008

R/C Servo Motors

I have been in the field of R/C radio control toys for about two years. One important component is the Servo Motor. Really it is equally important in Robot Toy control.

The control pulse is simply a pulse width from 1.0 ms to 2.0 ms.
When pulse is 1.5ms, the servo will go to the midway. No need to provide pulse if you don't want to change the position, it will lock on the last valid pulse received.

R/C plane, car, boat all use it to control the direction.

Thursday, November 13, 2008

LCD Module : Charactor type 16 x 2 with Backlight

LCD module is commonly used in MCU project to show message for better UI.


This is my favorite LCD Module with Green-yellow backlight which cost less then US$4.0!!!



Interface is simple, minimum control pin is only 6!!!





Basic Stamp Divided by Four!

Free version of Famlous Basic Stamp.


I do not own any version of Offical Basic Stamp Module as I think it it too expensive (compared with it's function).

But I find that this little toy is so fun to do simple experiment for MCU Newbies.

I have tried this BS4 (Basic Stamp divided by Four) about 3 years ago. It work but the function is simple (& simple), suitable for beginer.

Just burn the fireware by Programmer and assemble.

Antti's has just 64, which is the internal data eeprom storage of the PIC16C84 and PIC16F84 EEPROM version PICmicros. It appears that possible additional development on this project is not forthcoming, so Antti has granted me permission to place this code on the web free for personal use only.

http://www.dontronics.com/bs4.html

Wednesday, November 12, 2008

AVRUSBBoot - USB bootloader for Atmel AVR controllers AVR

Use software only to simulate USB port (Slave mode) by ATMega8. I have tried and it work great.

I use this USB-uploader to put the BASCOM AVR program into the ATMega8 chips.

Low cost & no need any development tools. Just USB port from PC computer.


Features

Software works under multiple platforms. Linux, Mac OS X and Windows are tested.
Tested with ATMega8-16
No special USB controllers or smd components are needed.
Bootloader fits into 1024 word bootloader block

URL http://www.fischl.de/avrusbboot/

BASCOM AVR Basic Compiler

Due to the good feeling on the "BASCOM 8051 Basic Compiler", once I try to use ATMEL AVR (ATmega & ATTiny), I start from this "BASCOM AVR Basic Compiler".

Comment = VERY VERY Good!!!

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, Double and String variables.
Large set of Trig Floating point functions. Date & Time calculation functions.
Compiled programs work with all AVR microprocessors that have internal memory.
Statements are highly compatible with Microsoft’s VB/QB.
Special commands for LCD-displays , I2C chips and 1WIRE chips, PC keyboad, matrix keyboad, RC5 reception, software UART, SPI , graphical LCD, send IR RC5, RC6 or Sony code. TCP/IP with W3100A chip.
Local variables, user functions, library support.
Integrated terminal emulator with download option..
Integrated simulator for testing.
Integrated ISP programmer (application note AVR910.ASM).
Integrated STK200 programmer and STK300 programmer. Also supported is the low cost Sample Electronics programmer. Can be built in 10 minutes! Many other programmers supported via the Universal Interface.
Editor with statement highlighting.
Context sensitive help.
Perfectly matches the DT006 SimmStick from Dontronics and the MAVRIC and the M128 REV B from BDMICRO.
DEMO version compiles 2KB of code. Well suited for the AT90S2313.
English an German Books available
Special tcp/ip library, AT mouse simulator, AT keyboard simulator available as add on.
The following statements are supported (actually there are many more look in the helpfile):
Decision and structuresIF, THEN, ELSE, ELSEIF, END IF, DO, LOOP, WHILE, WEND, UNTIL, EXIT DO, EXIT WHILE, FOR, NEXT, TO, STEP, EXIT FOR, ON .. GOTO/GOSUB, SELECT, CASE.
Input and outputPRINT, INPUT, INKEY, PRINT, 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, OPEN, CLOSE, DEBOUNCE, SHIFTIN, SHIFTOUT, GETATKBD, SPC, SERIN, SEROUT
Numeric functionsAND, OR, XOR, INC, DEC, MOD, NOT, ABS, BCD, LOG, EXP, SQR, SIN,COS,TAN,ATN, ATN2, ASIN, ACOS, FIX, ROUND, MOD, SGN, POWER, RAD2DEG, DEG2RAD, LOG10, TANH, SINH, COSH.
I2CI2CSTART, I2CSTOP, I2CWBYTE, I2CRBYTE, I2CSEND and I2CRECEIVE.
1WIRE1WWRITE, 1WREAD, 1WRESET, 1WIRECOUNT, 1WSEARCHFIRST, 1WSEARCHNEXT.
SPISPIINIT, SPIIN, SPIOUT, SPIMOVE.
Interrupt programmingON INT0/INT1/TIMER0/TIMER1/SERIAL, RETURN, ENABLE, DISABLE, COUNTERx, CAPTUREx, INTERRUPTS, CONFIG, START, LOAD.
Bit manipulationSET, RESET, ROTATE, SHIFT, BITWAIT, TOGGLE.
VariablesDIM, BIT , BYTE , INTEGER , WORD, LONG, SINGLE, STRING , DEFBIT, DEFBYTE, DEFINT, DEFWORD.
MiscellaneousREM, ' , 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, FUNCTION, READMAGCARD, BIN2GREY, GREY2BIN, CRC8, CRC16, CHECKSUM.
Compiler directives$INCLUDE, $BAUD and $CRYSTAL, $SERIALINPUT, $SERIALOUTPUT, $RAMSIZE, $RAMSTART, $DEFAULT XRAM, $ASM-$END ASM, $LCD, $EXTERNAL, $LIB.
String manipulationSTRING, SPACE, LEFT, RIGHT, MID, VAL, HEXVAL, LEN, STR, HEX, LTRIM, RTRIM, TRIM, LCASE, UCASE, FORMAT, FUSING, INSTR.
And many other functions, statements and directives
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)

BASCOM 8051 Basic Compiler

This is the first Basic compiler on MCU project at few years ago and till now it is still my favourite. Simple, Easy to use and FREE (demo version can run 4K code).

It work fit with ATMEL 89C51 and 89c4051.



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.

The following statements are supported :

Decision and structuresIF, 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 outputPRINT, 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 functionsAND, OR, XOR, INC, DEC, MOD, NOT, ABS, BCD.
I2CI2CSTART, I2CSTOP, I2CWBYTE, I2CRBYTE, I2CSEND and I2CRECEIVE.
1WIRE1WWRITE, 1WREAD, 1WRESET.
SPISPIINIT, SPIIN, SPIOUT.
Interrupt programmingON INT0/INT1/TIMER0/TIMER1/SERIAL, RETURN, ENABLE, DISABLE, PRIORITY SET/RESET, COUNTERx, CAPTUREx, INTERRUPTS, CONFIG, START, LOAD.
Bit manipulationSET, RESET, ROTATE, BITWAIT.
VariablesDIM, BIT , BYTE , INTEGER , WORD, LONG, SINGLE, STRING , DEFBIT, DEFBYTE, DEFINT, DEFWORD.
MiscellaneousREM, ' , 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.
Conditional compilation#IF, #ELSE, #ENDIF
String manipulationSTRING, SPACE, LEFT, RIGHT, MID, VAL, HEXVAL, LEN, STR, HEX, LCASE, UCASE
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)

Tuesday, November 11, 2008

Mini STK500 Downloader for ATMEL AVR

Mini STK500 make the same function of STK500 V2 standard, fully compatible with offical AVR STK500
Supported Device (ATMEL ATmega ATtiny)

ATtiny11 ATtiny12 ATtiny13 ATtiny15 ATtiny22 ATtiny24 ATtiny26 ATtiny28 ATtiny45

ATtiny2313 ATtiny861 AT90S1200 AT90S2313 AT90S2323 AT90S2333 AT90S2343

AT90S4414 AT90S4433 AT90S4434 AT90S8515 AT90S8535 ATmega8 ATmega16

ATmega32 ATmega48 ATmega64 ATmega88 ATmega103 ATmega128 ATmega1280

ATmega1281 ATmega161 ATmega162 ATmega163 ATmega165 ATmega168 ATmega169

ATmega256 ATmega323 ATmega325 ATmega329 ATmega406 ATmega640

ATmega644 ATmega645 ATmega649 ATmega2560 ATmega2561 ATmega3250 ATmega3290

ATmega6450 ATmega6490 ATmega8515 ATmega8535 AT90CAN32 AT90CAN128

AT90PWM2 AT90PWM3



Oh! AVR development become easy!

ARM7 KIT LPC214X (LPC214X/LPC213X)

Hi ALL,

I am in Hong Kong and is easy to get low cost but powerful development kit from China source.

I have this board on hand and really nice.

On board resources include:

  • A/D & D/A interface with USB sound card driver support for Windows XP, 98, ...

  • LCD Module interface : LCD12232, LCD1602A

  • USB 2.0 interface with onboard MMC / SD card reader slot

  • Dual RS232 port

  • 4 push buttons & 8 LED

  • Onboard ISP (bootloader) program download, JTAG standard

This is the first ARM7 kit that get my focus on ARM series and I expect it is expensive before. I use 8051 grade MCU for many many years (over 20 years) and find that ARM7 realy nice for high performance application.