View Full Version : Now how to check data signal. Diag code seems OK
njamateur
11-25-2007, 10:47 AM
I have a USB K150 programmer that came with the loader software and works great once I have the HEX file.
How do you get from the ASM code to HEX code?
There must be some free compiler (Is that what you call it?).
Also, having trouble with getting XMUS controller to work.
Mike
Wayne J
11-25-2007, 10:54 AM
MPLABS
free download here...
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&redirects=mplab
zaker
11-25-2007, 10:59 AM
You need MPLAB from Microchip to make the ASM into a HEX file
Get this http://www.christmasinshirley.com/forum/download.php?id=193 which is a compilation of notes from others on programming their PICs.
This should help, if not, holler again for some more detailed info.
njamateur
11-25-2007, 07:06 PM
Programmed the PICS and installed everything.
I got everything wired.
Plugged in the CAT5 and got the red LED - Wahoo!!
Then nothing.
Changed to the diag chip and get the heart beat Green light.
What else to do?
Going to double check that the data lines are correct.
Any ideas?
Mike
zaker
11-25-2007, 07:18 PM
Changed to the diag chip and get the heart beat Green light.
Channel 2 - blinks on and off as a heartbeat (if you see blinking, the PIC has power, clock, and is basically working ok).
Channel 5 - blinks on and off if the PIC is seeing a more or less proper Zero-crossing signal
What about the Zero Crossing LED? In there's no ZC, it won't work.
tom
njamateur
11-25-2007, 08:29 PM
Tom,
Thanks for the reply.
I just wired up a couple of channels on another board with the same results.
Anyway, I only see the 5V LED and the two Channel 2 LED (activated by the jumper) There is no ZC LED on the XMUS Renard - is there?
I am lookng for Dave's jumper explanation.
Not sure what to do with J1 and J2 if anything.
Mike
njamateur
11-25-2007, 08:40 PM
OK I found the J1-4 explanation
Put all 4 jumpers on and turned on power and plugged in 12 V
Still nothing.
I assume that the channel eith should come on with just the unit plugged in.
Also, channel eight is the left most channel of each group of 8.
Hmmm - what would cause that?
Mike
njamateur
11-25-2007, 08:50 PM
OK,
This is weird. I have 120 at both channel 8s
But no power.
DUH!! I thought the ground lug was connected to both points.
I am confused how the 120 goes onto the board.
Gotta look again.
Mike
zaker
11-25-2007, 08:51 PM
My bad, I didn't see what board your were building. No ZC on Xmus board
J1, J2 You may optionally solder a two pin header here, and install a jumper in order to force pin2 of the opto-isolator to zero, thus turning on the triac for channel 8. This is a good thing to do to prove that 120 volts is active, and that everything downstream of the opto-isolators is working correctly.
Have you looked at http://www.ritzfam.com/ChristmasMadness/Renardx16SSR/Release/16CPicDimmedSSR_Theory_of_Operation_Rev1.9.pdf ?
Did you set your baud rate in the plugin setup? I think the Xmus also need to be set at 57600
tom
njamateur
11-25-2007, 09:06 PM
OK I moved the neutral to the upper screw.
The J1 and J2 force the channel 8s on.
The green channel 2 LED on the right by the out jack, stays on all the time with or without 110.
The Channel 2 LED on the left stays off.
Still no blinky flashy.
Mike
njamateur
11-25-2007, 09:20 PM
My bad, I didn't see what board your were building. No ZC on Xmus board
J1, J2 You may optionally solder a two pin header here, and install a jumper in order to force pin2 of the opto-isolator to zero, thus turning on the triac for channel 8. This is a good thing to do to prove that 120 volts is active, and that everything downstream of the opto-isolators is working correctly.
Have you looked at http://www.ritzfam.com/ChristmasMadness/Renardx16SSR/Release/16CPicDimmedSSR_Theory_of_Operation_Rev1.9.pdf ?
Did you set your baud rate in the plugin setup? I think the Xmus also need to be set at 57600
tom
Hi TOm,
Yes,I reread the theory. Dave did a good job.
I have verfied that ZC with the J1 and J2
Don't understand why the right channel 2 LED stays lit but not the Left.
I checked the baud rate and the plugin settings.
Still no response from Vixen.
Mike
Mike we need to slow down, back up a bit.
You wrote: "The green channel 2 LED on the right by the out jack, stays on all the time with or without 110. The Channel 2 LED on the left stays off. "
This is bad.
1) ch2 on both pics should flash constantly
2) ch5 on both pics should flash constantly.
Channel 2 - blinks on and off as a heartbeat (if you see blinking, the PIC has power, clock, and is basically working ok).
Channel 5 - blinks on and off if the PIC is seeing a more or less proper Zero-crossing signal
On (I assume) the Left PIC, you need to address the no ZC issue.
On the (I assume) Right PIC you need to address a more basic issue....
I would look for a firmware issue on the Right pic first. (swap the pics and see if you get the same situation).
Next, take a high resolution picture (of the top, and bottom) and attach it for us to review (email me the super high resolution picture).
Mike your board (just tried one of them) is working perfectly using my rs485 dongle and serial cable. I imagine your problem is with your cable, but I'm still digging.
UPDATE:
Mike you will be very (un?)happy to know your board is working perfectly with YOUR 485 converter, dongle, and cable.
I think you have a serial port configuration issue on your computer/vixen.
njamateur
12-01-2007, 03:03 PM
Dave,
I discovered that the mapping is somehow in error on my ports.
Port 1 is really 2 and vice versa thanks to portmon watching the traffic.
I got the boards to work with DB9s sending RS232 to the RJ45
Then when I put the RS485 converter in line everything goes dead even though port mon still say the bits are flying.
Hmmm - I can always use one board up front to act as the feed board for the display. I might actually be able to feed the first controller with RS232 if I configure it right.
Good news is I now have blinky flashy - WAHOO!!
Any ideas why the swap out of the DB9 to RS485 would be wrong.
Was my wiring for RS485 OK when you got it??
Thanks,
Mike
Dave,
I discovered that the mapping is somehow in error on my ports.
Port 1 is really 2 and vice versa thanks to portmon watching the traffic.
I got the boards to work with DB9s sending RS232 to the RJ45
Then when I put the RS485 converter in line everything goes dead even though port mon still say the bits are flying.
Hmmm - I can always use one board up front to act as the feed board for the display. I might actually be able to feed the first controller with RS232 if I configure it right.
Good news is I now have blinky flashy - WAHOO!!
Any ideas why the swap out of the DB9 to RS485 would be wrong.
Was my wiring for RS485 OK when you got it??
Thanks,
Mike
what you sent me works perfectly, I used your cable and RS485 connector exactly as you would have. Please lets just continue the conversation in here, I don't like doing email and DIY, just choose one :) Typing everything twice urks me :)
njamateur
12-02-2007, 04:24 PM
Dave,
For the life of me I can't figure out why the RS 485 won't work.
I hooked it up to 2 more computers.
Do you see anything wrong with the following:
RJ45 pin / CAT 5E Color / Computer connector out
1 orange white GND
2 orange GND
3 green white +12V
4 blue RS485B- DB9 Pin 3
5 blue white RS485B+ DB9 Pin 5
6 green GND
7 brown white +12V
8 brown +12V
In other words:
Pin 1, 2 and 6 with solder ball is ground
Pin 7, 8 and 3 with solder ball is +12V
pin 4 RS485B- RS232 TXD DB9 Pin 3 Black
pin 5 RS485A+ RS232 GND DB9 Pin 5 Green
I have a DB9 connector wired in common to the lugs out of the RS485 connector. When I plug the DB9 in everything works with RS232; when I unplug that and plug in the RS485 converter - nothing happens. Keeping the 12 VDC power wires unchanged.
Perplexed,
Mike
njamateur
12-02-2007, 08:13 PM
As you guys said must be simple."
LOL well I had the DB9 connected alright and had the D- and D+ swapped.
Everythings working now.
Good Grief.
Dave,
thank you very much for all your help.
Mike
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.