Author Topic: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2  (Read 7976 times)

amitoha23

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« on: August 20, 2013, 06:44:38 am »
Hello , My name is Amit and i am new in this forum .

as i mentioned in the topic , i have a device called DMX512  . it a smart light controller .
i have tried to communicate with the controller according to manual . with out any luck  , i even got the chip to stop working while trying to communicate with it .
i have only tried to read data . 

the DMX512 use mini Usb which have only 4 pins (GND ,TXD,RXD,+5v) .
How do i get it to ISP mode ?

the USB driver in my computer seems to work as i can see the ch340 USB TO SERIAL in the device manager .
while using the flash magic i tried different baud rates , different Freq  ,and even different protocols. no luck with reading the chip (or programing it ) .

i have the original Hex File (of the DMX512 )  i would like to try and reprogram it to make the DMX work again . any help is welcome

Reagrds
Amit

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2114
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #1 on: August 20, 2013, 07:25:16 am »
The 89V51RD2 expects to receive a 'U' within 400ms of reset. When you click on Start in Flash Magic it starts sending out a burst of 'U's and displays a window telling you to reset the device.

You will need to use a scope to check the 'U's are being received while you reset the microcontroller.

Start with 9600 baud.

Crystal frequency can be read from the can of the crystal.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

amitoha23

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #2 on: August 20, 2013, 11:14:31 pm »
Hi Andy ,

i do not have any reset button on the card (DMX300 device )  how can i reset the CPU ?
in what pin  do i need to check " U " signal?

while playing with the boud rate it seems that i have changed somthing in the chip as its original software has been changed (it has stopped working ) .

Regards
Amit



Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2114
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #3 on: August 21, 2013, 01:55:32 am »
Please see the 89V51RD2 data sheet from NXP for details of how the ISP protocol works.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

amitoha23

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #4 on: August 22, 2013, 05:55:48 am »
H Andy ,

i have managed to program the chip . thank you , but on the way i think i damaged to boot-loader . the chip seems to program successfully but it does not work  ,(it stopped working when i have tried to communicate with it ) i think by mistake i have used the P89C51 settings by mistake , i have read its a common issue , i have tried to follow a guide to repair it but i did not manged to understand what was going on at that guide .

just in case i have a parallel programmer (easypro90b ) can it help solve my problem ?
do you have a simple solution ?


Regards
Amit

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2114
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #5 on: August 22, 2013, 08:36:57 am »
If you chose the wrong device in Flash Magic then it may be in SoftICE mode. Search on google for possible ways out of it. Your parallel programmer should help.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

amitoha23

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #6 on: August 24, 2013, 09:33:11 am »
Hi Andy
well i did as in the guide for Fixing the SoftICE mode , how do i know it solved the problem ?
something is still wrong , the chip does not function properly ,  the ISP works . but it lost it original function .( the DMX300 display stopped working ).,
 
 i will test it functionality today maybe just display issue .

Reagrds
Amit

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2114
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #7 on: August 24, 2013, 03:18:43 pm »
Perhaps the hex file you are programming is not the correct one?

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

amitoha23

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #8 on: August 28, 2013, 09:20:04 pm »
Hi Andy ,

the seller sent me new files and software , it seems to fix the device . what make me thinks that i can not trust the programming software i got from seller .
as it seems to be unstable , what software can i use to write Hex files to P89V51RD2 using ISP ? ( using USB cable with ch340 chip )

Best regards
Amit

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2114
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #9 on: August 29, 2013, 01:23:21 am »
Flash Magic should work.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

amitoha23

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: DMX512 controller with ch340 (usb to Serial ) and P89V51RD2
« Reply #10 on: August 29, 2013, 01:59:10 am »
Can you please link me to a download of working software .  i have version 4,5 .
 i am not sure they work properly as message jumps from time to time .
and a ch340 driver to win 7 64bit .
Thank you

Amit

R19Loxy

  • Jr. Member
  • **
  • Posts: 1
    • MSN Messenger - r19thet@yandex.com
    • View Profile
    • Email
DMX512 controller with ch340 usb to Serial and P89V
« Reply #11 on: December 11, 2014, 07:54:04 am »
That's pretty cool.  I have one DMX controller that I bought with the idea of trying to find something similar to this.  The problem I have is that I got the mp3 director last year so I don't have the computer to run the show to separate this.  I'm curious if some of the smart computer geeks meant affectionately out there would know if this could be put on a microcontroller to make a cheap substitute for the iDMX 1000 controller.