caramoan tour package

caramoan tour package

Author Topic: (altenative) Loader circuit for DS89C4x0  (Read 3975 times)

Offline 'yus

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4251
  • Pogi/Ganda Points: 299
  • Gender: Male
  • hw -> fw -> sw
    • yus' projects
(altenative) Loader circuit for DS89C4x0
« on: October 01, 2009, 12:28:31 AM »
ito gumana ito sa kasagsagan pa ng bagyo.. :D pero inabot ng brownout.. :-\

from the conventional "Serial Load Hardware Configuration"


to this one:

*uses PL2303 from this cable: CHEAP USB-serial interface cable for our MCU projects!
*completely USB-powered
*no other addtional IC (e.g 74xx125)

inside the cdrking's nokia data cable:


connections (tapping of wires):


actual circuit:

*has a pull-up of P3.7 pin (only for some batches of ds89c420 as indicated in the errata)

the 40-pin obsolete DS89C420 (may 2 stocks pa pala ako nito sa province :) ):


the software:

*the actual hardware is not working with version 2.4.10 ??? :-\
*works also with Loader420 and hyperterminal.. :)
http://files.dalsemi.com/microcontroller/dev_tool_software/mtk/obsolete/
join  - Philippine Electronics and Robotics Enthusiasts Club - www.philrobotics.com

Philippine Electronics Forum

(altenative) Loader circuit for DS89C4x0
« on: October 01, 2009, 12:28:31 AM »

Offline marcelino

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: (altenative) Loader circuit for DS89C4x0
« Reply #1 on: October 01, 2009, 12:44:40 AM »
nice one... very helpful! :D
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: (altenative) Loader circuit for DS89C4x0
« Reply #1 on: October 01, 2009, 12:44:40 AM »

Offline clarkent

  • Lead Acid Battery
  • *******
  • Posts: 505
  • Pogi/Ganda Points: 20
  • Gender: Male
  • iehs
Re: (altenative) Loader circuit for DS89C4x0
« Reply #2 on: October 03, 2009, 05:53:43 PM »
yus yan ba yung cnasabi mo sakin na cable na nabili mo?ayos ah.kaya lang parang nkakatakot subukan sa laptop.hehe
if you think you can or think you can't, you're probably right -h.ford

Philippine Electronics Forum

Re: (altenative) Loader circuit for DS89C4x0
« Reply #2 on: October 03, 2009, 05:53:43 PM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10767
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: (altenative) Loader circuit for DS89C4x0
« Reply #3 on: October 03, 2009, 06:54:21 PM »
bakit naman nakakatakot? 'yung USB to UART chip naman ang masisira kung may mali. ;D ;D ;D
‎"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: (altenative) Loader circuit for DS89C4x0
« Reply #3 on: October 03, 2009, 06:54:21 PM »

Offline 0b00000111

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6130
  • Pogi/Ganda Points: 398
  • There is no delight in owning anything unshared.
Re: (altenative) Loader circuit for DS89C4x0
« Reply #4 on: October 03, 2009, 06:58:01 PM »
dissection ;D ;D ;D
E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  ;D

Philippine Electronics Forum

Re: (altenative) Loader circuit for DS89C4x0
« Reply #4 on: October 03, 2009, 06:58:01 PM »

Offline 'yus

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4251
  • Pogi/Ganda Points: 299
  • Gender: Male
  • hw -> fw -> sw
    • yus' projects
Re: (altenative) Loader circuit for DS89C4x0
« Reply #5 on: October 03, 2009, 08:35:24 PM »
the "classic" LED blinker program.. :D


demo:
http://tinypic.com/r/2w4cw7b/4
join  - Philippine Electronics and Robotics Enthusiasts Club - www.philrobotics.com

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10767
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: (altenative) Loader circuit for DS89C4x0
« Reply #6 on: October 03, 2009, 08:43:02 PM »
panalo talaga ang DS89C450. ;D ;D ;D pwede pang gamitin sa OSD applications. best of all, FREE. ;D ;D ;D
‎"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 'yus

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4251
  • Pogi/Ganda Points: 299
  • Gender: Male
  • hw -> fw -> sw
    • yus' projects
Re: (altenative) Loader circuit for DS89C4x0
« Reply #7 on: October 03, 2009, 09:22:40 PM »
nung sina-simulate ko sya sa proteus using 8052 device,
parang hindi sya nagbi-blink. yung pala "high-speed" nga pala ang mga DS89C4x0.
kaya ayun inadjust ko na lang yung "delay()".. :)
join  - Philippine Electronics and Robotics Enthusiasts Club - www.philrobotics.com

Offline beginner wan

  • Diesel Generator
  • *
  • Posts: 1451
  • Pogi/Ganda Points: 46
  • Gender: Male
  • Think Positive! Matutupad yang dream mo!
    • [im]Duino
Re: (altenative) Loader circuit for DS89C4x0
« Reply #8 on: October 04, 2009, 08:57:21 AM »
ayos na ayos yung prototype ah! ang galing!

nung sina-simulate ko sya sa proteus using 8052 device,
parang hindi sya nagbi-blink. yung pala "high-speed" nga pala ang mga DS89C4x0.
kaya ayun inadjust ko na lang yung "delay()".. :)

may question ako dito sir yus, diba yung chip ng dallas may kailangan kang galawin na register para magamit mo sya na highspeed?  ??? ??? ???
i;0.?QrEpM?4DEZZ]bkH{w@F<38.Jq@92Ds3KPQj60?EA7U\3M<A84J|AI.H
R@>&?Ej,@;5H)o::7KE/:?QcXf?gX'39=,Z_Q[eYXc

Offline 'yus

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4251
  • Pogi/Ganda Points: 299
  • Gender: Male
  • hw -> fw -> sw
    • yus' projects
Re: (altenative) Loader circuit for DS89C4x0
« Reply #9 on: October 04, 2009, 10:48:50 AM »
... diba yung chip ng dallas may kailangan kang galawin na register para magamit mo sya na highspeed? ...
ang pagkakaintindi ko, wala ng gagalawin sa registers..
ang pinagkaiba  nya sa 8051 is yung "clock cycles per intruction".
yung DS89, kayang umabot ng 1 clock cycles per intruction (depende sa type ng instruction).
while yung original probably requires more than 1 clock cycles (up to 12),
kaya effectively nadidivide yung speed nya ng execution.

(yung mga pic16F kelangan ng 4 clock cycles bago matapos ang isang instruction)
join  - Philippine Electronics and Robotics Enthusiasts Club - www.philrobotics.com

Offline marcelino

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: (altenative) Loader circuit for DS89C4x0
« Reply #10 on: October 04, 2009, 10:58:45 AM »
nung sina-simulate ko sya sa proteus using 8052 device,
parang hindi sya nagbi-blink. yung pala "high-speed" nga pala ang mga DS89C4x0.
kaya ayun inadjust ko na lang yung "delay()".. :)

ayos yus ah! di ko alam na may proteus model pala na pwedeng gamitin  for testing ...

thanks! ;)
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline clarkent

  • Lead Acid Battery
  • *******
  • Posts: 505
  • Pogi/Ganda Points: 20
  • Gender: Male
  • iehs
Re: (altenative) Loader circuit for DS89C4x0
« Reply #11 on: October 04, 2009, 12:01:09 PM »
bakit naman nakakatakot? 'yung USB to UART chip naman ang masisira kung may mali. ;D ;D ;D

ganun pala yun. ;D hehe cge masubukan nga sa laptop sa opis.hehehe
if you think you can or think you can't, you're probably right -h.ford

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10767
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: (altenative) Loader circuit for DS89C4x0
« Reply #12 on: October 04, 2009, 01:35:40 PM »
ayos na ayos yung prototype ah! ang galing!

may question ako dito sir yus, diba yung chip ng dallas may kailangan kang galawin na register para magamit mo sya na highspeed?  ??? ??? ???

ang alam kong may register wan 'yung Timer. pwede kasi siyang i-parehas ng timing sa lumang 8051 para pwedeng drop-in replacement.
‎"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 marcelino

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: (altenative) Loader circuit for DS89C4x0
« Reply #13 on: October 04, 2009, 01:45:37 PM »
ang alam kong may register wan 'yung Timer. pwede kasi siyang i-parehas ng timing sa lumang 8051 para pwedeng drop-in replacement.

anong ibig mong sabihin nito sis?

ganito ba? same code sa 8051 then compile to 8052, tapos dapat working?

tried ko ngayon... same code dun sa at89c21, pinalitan ko lang yung header sa 8052.h. compile then working naman sa proteus.
Code: [Select]
#include <8052.h>

#define OVERFLOW_1S 50 

char const MAP[ ] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 };

void timer0_init (void)
{

TMOD = TMOD & ~0x08;
//T0_CT_ = 0;
TMOD = TMOD & ~0x04;
//T0_M1_ = 0;
TMOD = TMOD & ~0x20;
//T0_M0 = 1; //16-bit
TMOD = TMOD | 0x10;
TR0 = 1;
}

void main( void )
{
unsigned char i;
unsigned int overflows = 0;
timer0_init();

P1 = 0x00; // initialize P1.0 = 0;

while(1)
{
if(TF0)
{
TF0 = 0;
overflows++;
if (overflows >= OVERFLOW_1S)
{
overflows = 0;
i++;
if (i>=8) i = 0;
P1 = MAP[i];
}
}
}
}
 
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10767
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: (altenative) Loader circuit for DS89C4x0
« Reply #14 on: October 04, 2009, 02:05:22 PM »
IIRC, naka-default na same ang Timer speed, pero mas mabilis na ang processing. pero pwedeng ilipat sa high speed na 1:1 'yung timer.
‎"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 beginner wan

  • Diesel Generator
  • *
  • Posts: 1451
  • Pogi/Ganda Points: 46
  • Gender: Male
  • Think Positive! Matutupad yang dream mo!
    • [im]Duino
Re: (altenative) Loader circuit for DS89C4x0
« Reply #15 on: October 04, 2009, 02:19:19 PM »
ang alam kong may register wan 'yung Timer. pwede kasi siyang i-parehas ng timing sa lumang 8051 para pwedeng drop-in replacement.

ah.. diko pa kasi nababasa masyado datasheet nya.. tnx sir! medyo napansin ko nga din na iba yung blink ng led ko nung gamit ko yung sa dallas compared sa at89s52..

i;0.?QrEpM?4DEZZ]bkH{w@F<38.Jq@92Ds3KPQj60?EA7U\3M<A84J|AI.H
R@>&?Ej,@;5H)o::7KE/:?QcXf?gX'39=,Z_Q[eYXc

Offline macky

  • Diesel Generator
  • *
  • Posts: 1088
  • Pogi/Ganda Points: 51
Re: (altenative) Loader circuit for DS89C4x0
« Reply #16 on: October 09, 2009, 02:05:23 PM »
wow! meron din pala ako sa bin ko nito 2 pcs din:


mahirap ba pag-aralan coding nito?
john 3:16 | oil of gladness

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10767
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: (altenative) Loader circuit for DS89C4x0
« Reply #17 on: October 09, 2009, 02:21:53 PM »
kung marunong ng C sis, madali lang sa SDCC. ;D
‎"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 macky

  • Diesel Generator
  • *
  • Posts: 1088
  • Pogi/Ganda Points: 51
Re: (altenative) Loader circuit for DS89C4x0
« Reply #18 on: October 09, 2009, 02:30:36 PM »
^thanks!!! SDCC pala yang M-IDE?
john 3:16 | oil of gladness

Offline clarkent

  • Lead Acid Battery
  • *******
  • Posts: 505
  • Pogi/Ganda Points: 20
  • Gender: Male
  • iehs
Re: (altenative) Loader circuit for DS89C4x0
« Reply #19 on: October 09, 2009, 03:26:54 PM »
ito gumana ito sa kasagsagan pa ng bagyo.. :D pero inabot ng brownout.. :-\

from the conventional "Serial Load Hardware Configuration"


to this one:

*uses PL2303 from this cable: CHEAP USB-serial interface cable for our MCU projects!
*completely USB-powered
*no other addtional IC (e.g 74xx125)

inside the cdrking's nokia data cable:


connections (tapping of wires):


actual circuit:

*has a pull-up of P3.7 pin (only for some batches of ds89c420 as indicated in the errata)

the 40-pin obsolete DS89C420 (may 2 stocks pa pala ako nito sa province :) ):


the software:

*the actual hardware is not working with version 2.4.10 ??? :-\
*works also with Loader420 and hyperterminal.. :)
http://files.dalsemi.com/microcontroller/dev_tool_software/mtk/obsolete/

ano po kaya ang pwedeng ipalit sa HC/LS125? wala kasi akong mabilan nito dito sa bicol e. di available sa mga electronics store.
if you think you can or think you can't, you're probably right -h.ford

Philippine Electronics Forum

Re: (altenative) Loader circuit for DS89C4x0
« Reply #19 on: October 09, 2009, 03:26:54 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com