caramoan tour package

caramoan tour package

Author Topic: AT89C4051 USB-to-RS232 Communication (VB.NET and C)  (Read 2504 times)

Offline Arvie

  • Size AAA Battery
  • ***
  • Posts: 62
  • Pogi/Ganda Points: 5
AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« on: May 04, 2011, 12:25:11 AM »
Good day! ;D

Sana po matulungan nyo ako. ???

Target ko po eh AT89C4051 USB-to-RS232 Communication

SOFTWARE ( in VB.NET ) <-- USBtoRS232 --> AT89C4051 ( in C )

Wala pa po akong alam about Microcontroller Programming.

Para matuto.. Need ko po ng 8051 Programmer..

May mga DIY 8051 Programmer akong nakita dito kaso need pa ding iprogram yung Firmware.
So dapat talaga may Programmer ako..  :(

Meron sa  Alexan: ATMEL AT89C2051/AT89C4051 Programmer!
1. Mga magkano po kaya yun?
2. How much din po kaya yung AT89C4051 Microcontroller?
3. Saka po.. required po ba na may quartz crystal or ceramic resonator kapag gagamitin ko na yung MCU sa circuit ko?
4. Ano pong mga softwares ang recommended nyo para madali akong matuto.. hehe

Yung C Language eh niaaral ko pa lang. hehe :D

Salamat.

Philippine Electronics Forum

AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« on: May 04, 2011, 12:25:11 AM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10719
  • Pogi/Ganda Points: 630
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #1 on: May 04, 2011, 12:52:49 AM »
Yan lang ba ang available sayong micro? Medyo mahirap kasi maghanap ng tutorials niyan at mahirap iprogram.

BTW, SDCC ang gamit kong compiler para sa 8051. Tapos may DIY programmer ako na naprograman ko sa opisina.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #1 on: May 04, 2011, 12:52:49 AM »

Offline tiktak

  • Gas Turbine
  • **
  • Posts: 2859
  • Pogi/Ganda Points: 203
  • Gender: Male
    • Tiktakx's Blog
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #2 on: May 04, 2011, 12:54:20 AM »
Good day! ;D

Sana po matulungan nyo ako. ???

Target ko po eh AT89C4051 USB-to-RS232 Communication

SOFTWARE ( in VB.NET ) <-- USBtoRS232 --> AT89C4051 ( in C )
para sa vb.net check mo dito:
 http://tiktakx.wordpress.com/2010/11/21/serial-port-interfacing-with-vb-net-2010/

Wala pa po akong alam about Microcontroller Programming.

Para matuto.. Need ko po ng 8051 Programmer..

May mga DIY 8051 Programmer akong nakita dito kaso need pa ding iprogram yung Firmware.
So dapat talaga may Programmer ako..  :(
  if malapit ka lang sa alabang area I can spare time to help you program the firmware needed for the programmer
(bakit ba 8051? pede namang PIC :D mas madali gumawa ng programmer )

Meron sa  Alexan: ATMEL AT89C2051/AT89C4051 Programmer!
1. Mga magkano po kaya yun? 1700++ IIRC yung programmer ng alexan
2. How much din po kaya yung AT89C4051 Microcontroller? nasa 100 petot lang ata ito
3. Saka po.. required po ba na may quartz crystal or ceramic resonator kapag gagamitin ko na yung MCU sa circuit ko?
  required ito sa lahat ng MCU na walang internal oscillator like 8051
4. Ano pong mga softwares ang recommended nyo para madali akong matuto.. hehe
   for C programming the 8051 I use MIDE with SDCC from opcube.com

Yung C Language eh niaaral ko pa lang. hehe :D

Salamat.
8051 stuff

Philippine Electronics Forum

Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #2 on: May 04, 2011, 12:54:20 AM »

Offline Arvie

  • Size AAA Battery
  • ***
  • Posts: 62
  • Pogi/Ganda Points: 5
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #3 on: May 04, 2011, 01:03:15 AM »
Yan lang ba ang available sayong micro? Medyo mahirap kasi maghanap ng tutorials niyan at mahirap iprogram.

BTW, SDCC ang gamit kong compiler para sa 8051. Tapos may DIY programmer ako na naprograman ko sa opisina.

hmm.. bago kasi ako pumili ng micro eh humanap muna ako ng programmer.

eh yung Alexan's ATMEL AT89C2051/AT89C4051 Programmer lang nakita ko na available.

anong micro ba sir gamit nyo? ??? saka DIY programmer ?


yung SDCC eh console app po ano? walang GUI?

Thanks.

Philippine Electronics Forum

Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #3 on: May 04, 2011, 01:03:15 AM »

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5706
  • Pogi/Ganda Points: 412
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"

Philippine Electronics Forum

Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #4 on: May 04, 2011, 01:05:56 AM »

Offline Arvie

  • Size AAA Battery
  • ***
  • Posts: 62
  • Pogi/Ganda Points: 5
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #5 on: May 04, 2011, 01:16:05 AM »
Check this out...

chaokhun.kmitl.ac.th/~kswichit/Pgm89v31_web/Pgm89v31.html

chaokhun.kmitl.ac.th/~kswichit/Pgm89v2/Pgm89_2v0.html

Thanks sir..

Pero walang Parallel Port yung PC ko.

USB Port only. :(

Offline tiktak

  • Gas Turbine
  • **
  • Posts: 2859
  • Pogi/Ganda Points: 203
  • Gender: Male
    • Tiktakx's Blog
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #6 on: May 04, 2011, 01:21:00 AM »
hmm.. bago kasi ako pumili ng micro eh humanap muna ako ng programmer.

eh yung Alexan's ATMEL AT89C2051/AT89C4051 Programmer lang nakita ko na available.

anong micro ba sir gamit nyo? ??? saka DIY programmer ?


yung SDCC eh console app po ano? walang GUI?

Thanks.

for 2051 eto gamit kong programmer
  http://www.kmitl.ac.th/~kswichit/easy1/easy.htm
SDCC with IDE --> MIDE mula sa dito

for PIC micro I use elab's pickit2 clone
for AVR I am using USBASP
:D
8051 stuff

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5706
  • Pogi/Ganda Points: 412
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #7 on: May 04, 2011, 01:30:18 AM »
naka patay tayo dyan...hanap ka na lang muna pc na may parallel...

Offline Arvie

  • Size AAA Battery
  • ***
  • Posts: 62
  • Pogi/Ganda Points: 5
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #8 on: May 04, 2011, 03:03:55 AM »
salamat mga sir.. :D

nasusulat sa motherboard manual..
meron akong Parallel Port at Serial Port..

wala sila sa back panel..
nasa loob mismo nakadikit sa motherboard.
hindi D shape.. hehe

Nag.ikot ako para sa mga programmers..

89series: ww.8052.com/users/AT89S52InSystemProg
kaso need ko talagang maiprogram muna yung firmware..
unless may magprogram at ibigay saken.. hehe

PIC: ww.jdm.homepage.dk/newpic.htm
mas madali itong gawin. :D

hmmm.. mukhang mas may pag.asa ako sa PIC..

QUICK TUTORIAL:
C for PIC --> ww.swarthmore.edu/NatSci/echeeve1/Ref/C%20for%20PIC/C_Intro.html
C for 8051 -> ww.ikalogic.com/tut_8051_1.php



Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1878
  • Pogi/Ganda Points: 243
  • Gender: Male
  • Been at this longer than you've been alive.
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #10 on: May 04, 2011, 06:55:20 AM »
Quote
Target ko po eh AT89C4051 USB-to-RS232 Communication

SOFTWARE ( in VB.NET ) <-- USBtoRS232 --> AT89C4051 ( in C )

Somewhat misleading ang title. AFAIK, walang USB ang AT89C4051. The only thing na my USB ay ang PC mo. The conversion from USB to serial will be performed by a gadget from CDR-King. Your VB.net program will see the USB interface as a serial port and so from that end walang kinalaman ang USB. On both ends VB.net program -> AT89C4051 RS-232 serial communications lang. No real USB programming is involved.

Going back to the topic. There is nothing wrong with using AT89C4051. The device is new but it is somewhat old '51 architecture. The Atmel AVR is more modern. I can understand you chose it because the device programmer was easily available. Ginagawa ko rin yun. However, there are some but there is not much '51 MCU support you will get from the PICheads here.
"Set your mind free!"

Offline Arvie

  • Size AAA Battery
  • ***
  • Posts: 62
  • Pogi/Ganda Points: 5
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #11 on: May 04, 2011, 10:19:12 AM »
@ tiktak

salamat po sa links..
pede pala sa proteus.. hehe

Not working po ba talaga yung Programmer kapag USBtoRS232? :(

mukhang PIC na itutuloy kong aralin..

anong PIC po kaya ang magandang gamitin?
yung available at magkano? thanks sir.


@ motion55

yes sir!
both VB.NET and AT89C4051 supports Serial/RS232 Communication.
nilagay ko lang po na USBtoRS232 as additional info.
Iba kasi kapag yung RS232 mismo, baka pumasok pa yung MAX232.

hmm.. napansin ko nga po yun.
mas madaming PIC threads dito. :)

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10719
  • Pogi/Ganda Points: 630
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #12 on: May 04, 2011, 10:35:38 AM »
ikaw gagawa or bibili nung connection ng parallel port. alam ko standard naman ang pinout nung header na 'yun at may mga motherboard na sinasama 'yun (katulad din nung gamit sa opisina).
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline _basura_man()

  • Lead Acid Battery
  • *******
  • Posts: 945
  • Pogi/Ganda Points: 36
  • I Love Philrobokit! Efficiency is Laziness...
    • Learn robotics here.
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #13 on: May 04, 2011, 10:45:57 AM »
Quote
hmm.. napansin ko nga po yun.
mas madaming PIC threads dito.
dahil din sa availability,sa RS lang ako nakakakita ng Atmels, pero dumadami na din yung AVR counterparts  :D :D :D
http://e-gizmo.com/KIT/anito.html
I'd rather be called IDIOT than SIKAT
-John
5 idiots-INUTIL, TONTO, TANGA, HUNGHANG(me), BOBO

Offline Arvie

  • Size AAA Battery
  • ***
  • Posts: 62
  • Pogi/Ganda Points: 5
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #14 on: May 04, 2011, 11:11:22 AM »
ikaw gagawa or bibili nung connection ng parallel port. alam ko standard naman ang pinout nung header na 'yun at may mga motherboard na sinasama 'yun (katulad din nung gamit sa opisina).

Sir.. IEEE 1284 Parallel Port meron ako.



anong DIY programmer gamit nyo sir? ???


@ sir spectrum17

yep.. latest ng Microchip  ang AVR eh..
hehe.. teka teka..

May AVR Programmer ba kayo dito? :)

hmm.. mas available nga ang PIC eh. hehe
saka mas madaming PIC users dito.


Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5706
  • Pogi/Ganda Points: 412
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #15 on: May 04, 2011, 11:18:50 AM »
start ka sa 16F628A sa PIC...then blink la LED...:P

if meron ka Atmel willing to trade ako sa PIC..;D




@ sir spectrum17

yep.. latest ng Microchip  ang AVR eh..
hehe.. teka teka..




sis iba yung Microchip at AVR.....PIC = Microchip, AVR = Atmel...

nahilo ka na yata.....

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10719
  • Pogi/Ganda Points: 630
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #16 on: May 04, 2011, 11:19:08 AM »
AVR is from Atmel not Microchip.

sa 8051, 'yung kay Chaokhun.

PIC, 'di ako gumagamit masyado, pero kung kailangan, 'yung Universal Programmer sa opisina ang gamit ko.

AVR, AVR Dragon naman. eto ang madalas kong gamit. serach mo 'yung USBASP na ginagamit nilang DIY programmer.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline _basura_man()

  • Lead Acid Battery
  • *******
  • Posts: 945
  • Pogi/Ganda Points: 36
  • I Love Philrobokit! Efficiency is Laziness...
    • Learn robotics here.
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #17 on: May 04, 2011, 11:43:07 AM »
Quote
USBASP na ginagamit nilang DIY programmer.
kaya lang dun sa Windows7 ako nagkaproblema ng driver ng USBasp(nawala yung native USB driver ng windows7,di ko alam kung bakit)pero sa XP SP3 ok naman.

ok itong USBasp,madaling iDIY  ;)
http://e-gizmo.com/KIT/anito.html
I'd rather be called IDIOT than SIKAT
-John
5 idiots-INUTIL, TONTO, TANGA, HUNGHANG(me), BOBO

Offline tiktak

  • Gas Turbine
  • **
  • Posts: 2859
  • Pogi/Ganda Points: 203
  • Gender: Male
    • Tiktakx's Blog
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #18 on: May 04, 2011, 11:53:46 AM »
^OK sa naman sa akin sa windows7 yung driver, i force install lang :D

there's nothing wrong naman with 8051 as the masters say and I also use it, but I strongly suggest na bumili kanalang ng ePickit2 (pickit2 clone from e-gizmo) and start programming your PIC rather than spending time troubleshooting the programmer specially sa JDM
8051 stuff

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5706
  • Pogi/Ganda Points: 412
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #19 on: May 04, 2011, 12:16:41 PM »
ito USBasp..

http://www.fischl.de/usbasp/

gagawin ko na rin...sabay tayo..

pero yung OpenProg ko kinaya both PIC at Atmel...;D

sa OpenProg na muna ako...


More info:

http://rbt-techdepot.blogspot.com/2011/04/open-programmer-v07x.html

Philippine Electronics Forum

Re: AT89C4051 USB-to-RS232 Communication (VB.NET and C)
« Reply #19 on: May 04, 2011, 12:16:41 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com