Jump to content

Recommended Posts

Posted

Ello.. me again ;D

I plugged in my lcd, and nothing happens when i apply power, the backlighting doesnt come on (and no characters are displayed).

I programmed the PIC by using the JDM programmer over the connection to J3 on the core, which verified that the bootloader was loaded properly.

Should the LCD light up when power is applied to it, regardless of if everything is set up correctly (as long as power is being supplied to VDD and VSS and LED- and LED+)?

I think something is drastically wrong with my circuit - i sent the following sysex string:

F0 00 00 7E 40 00 0D 02 00 0B 0A 00 00 00 01 00 00 00 00 F7

in order to see if the PIC thought there was an lcd connected, but i got no response.

I'm getting fed up again  :-/

Thnx!

EDIT: Damn i forgot to say - i checked the connections for the LCD and thats all fine, i checked the voltage across Pin 1 and 2 of the LCD (Vss and Vdd) and that was a healthy 5v, as was the voltage across pin 15 + 16 - A(LED+) and K(LED-).

Guest kejace
Posted

You should probably check the schematics for the LCD. It should light up even if you don't have a PIC connected! If you have the right voltages the pinning is probably wrong.

(I hade the wrong schematics for mine and had exactly the same problem.)

Posted

Hey Ello!

Does the PIC send the (F0 00 00 7E 40  00 F7) string when you boot it up?

I would try troubleshooting the PIC chip first in order to isolate problems. When the PIC is working properly I would move on to troubleshooting the LCD.

Also for the LCD check the Contrast pot and make shure it is working properly. If it is bad it might already be on, but not visible.

In order to bypass the LCD (Thorsten had suggested)

-------------------------------------------------------------

Remove the D7 and +5V line - in this case the LCD driver should get a timeout and ignore all following calls to MIOS_LCD_*

--------------------------------------------------------------------

I would check the PIC first, examine pinouts for incorrect wiring, and let me know what happens.

Good Luck!

-Sephult

Posted

YO!

No the circuit doesnt send any sysex on start up, which makes me think there is a problem some where on the board (i don't get a sysex string even if the lcd is not connected).

As for the LCD, i tested it by plugging my cable in and checking the connection between the bottom of the core board (where the jumper pins where soldered) and each individual pin on the LCD.  Hard work when the pinning isnt straight forward!  ::)

Right.. i'll go check the connections on my core again :)

Posted

YO again!

OK so it must be a wiring problem, let me know what you find with the circuit wiring, when we get that solved then the LCD is the next step.

Also check your configurations on MIDI-OX

Thorsten suggested 2048*4 at 700ms after F7 delay, with delay set at zero. Also go to devices uncheck the attach midi in to midi out ports, open the midi out port in the top right cell and remove the midi input. This configuration seems to be the best for MIDI-OX.

Good luck on troubleshooting!

-Sephult

Posted

Hey I saw your previous post!

are you using the same crystal as posted. I believe it is the wrong cut, which might be your problems. I also notice your voltage was initially way high. Did you have your LCD connected at that time? I have burned out an LCD before because of a PSU short, so maybe this will help.

The xstal however looks suspicious :)

-Sephult

Posted

Hey mate :)

I didnt have anything connected at the when i was getting strange voltages, because i was just testing the volts between pins on the IC.

Yeah i'm using that same crystal, i was begining to get the feeling that that was the problem!  :-/

I checked the connection between pin 3 (+5v) of the 7805 and B+ / Vd of the core lcd jumper pins, and thats fine, so presumably the LCD *should* light up when i apply voltage, even if it displays nothing right?

I'll try find another crystal (my local supplier is out of stock) but farnell offers 3 x 10 mhz crystals and i dont know which are serial and which are paralell cut -

http://uk1.farnell.com/Search/level_5.jhtml?PRODID=47684&SKUID=45669

^ That's the order page, but it doesnt say (neither does the datasheet) whether crystals are serial or parallel cut  :'(

Posted

The xstal should have some sort of rating for capacitance, this is how you know which one is correct. As for the LCD, have you tried testing the contrast pot? I am unsure about hooking it to the 5v without the PIC booted.

I will test it out tomorrow and let you know.

-Sephult

Posted

Just use a multimeter- check the ohm ratings between the pins and see if you can get the correct resistance.

As for the circuit not working, Check your wiring again

-----------------------------------------------------------------------

j3 on the core

In normal use, the pins have to be shortened with 5 jumpers, otherwise the PIC will not run!

-----------------------------------------------------------------------

-Sephult

Posted

I have a spare PIC16F874 and 20 mhz crystal.  would it be possible to burn a firmware (after i've replaced the crystal) just to test the midi out (like send a sysex on power on)?

That way i would know if it was my crystal thats causing the problems?

I started building my box last year using the .pdf midibox 16 guide and that didnt work, but that could have fried my lcd i guess?

Well if the midi output works with my old pic, then i'll buy a new lcd :D

Posted

Well i tried with PIC16F874 and 20mhz crystal, and that didnt work either, so there has to be something wrong with my circuit.

I'm checking my components now.

C6 is 33nF (resin dipped code "333" so i think thats 33nF?) instead of 330 nF. Could this be the source of my problem?

That's all i can see thats wrong with my circuit  ???

Posted

I tested the circuit again with the correct C6, and it still doesnt work.

I've run out of ideas, can anyone help please?

When looking at the soldering is there anything specific to look out for - other than solder connecting two things that shouldn't be connected?

I wish my digital camera was good so i could take a detailed picture of my board so someone could get me advice!

Posted

Please try the following:


     
  • use the PIC18F452 (you wrote that IC-Prog verify passed...)
     
  • use a 10 MHz crystal
     
  • ensure that C1 and C2 is 33pF (pico-farad)
     
  • plug the 5 jumpers into the J3 socket
     
  • connect a LED+220 Ohm resistor between the Tx pin of the PIC and ground. Cathode (the short leg) connected to ground
     
  • the LED should lit at power on. if MIOS has not been uploaded yet, it should flicker every 2 seconds
     
  • disconnect the LED and try to upload the operating system. If this doesn't work, check the MIDI In port like descriped here: http://www.midibox.org/cgi-bin/yabb/YaBB.cgi?board=troubleshooting;action=display;num=1055726526
     
  • disconnect the LED after the test and try the upload again

Most important: so long as MIOS has not been uploaded correctly, the LCD will not be initialized!

Best Regards, Thorsten.

Posted

Thanks for the suggestion TK!

You caught me just as i was about to sling my pcb at the wall hehe.. *calms down*

Yes my PIC18F burns fine everytime, i shall solder the 10 mhz crystal back on, then follow your instructions.

Are those instructions for the bootstrap loader or test program (test_tx.hex)?

Thanks!

Posted

The instructions are for the bootstrap loader, all precompiled .hex files for the PIC16F are not working with a PIC18F.

So, for the PIC18F the strategy is to get the bootstraploader running first. Once it works, you don't need the JDM anymore.

Thereafter upload the operating system (MIOS V1.3) via MIDI - also this has only to be done once.

Thereafter try some MIOS applications.

Best Regards, Thorsten.

Posted

I guess that the crystal is ok ("for use with microprocessors" sounds good and the capacity is also within the range).

Just to ensure: a LED has a polarity - does it light up when you connect it between ground and any +5V pin of the PIC? It's also important that the MIDI-Out is not connected with the MIDI-In of your PC during the test.

If this is the case --- if the LED doesn't light up when connected to the Tx pin, the PIC isn't running. Which PCB are you using? The one with the crystal at the bottom side or the improved PCB by SmashTV where the crystal is beside of the PIC? You've to ensure that the metal case of the crystal doesn't get in contact with the tracks...

Best Regards, Thorsten.

Posted

HI!

Yes the LED lights up when in contact with +5v pins e.g.

Cathode is attached to middle pin of midi in (ground) - pins 1, 6 11, and 32 all light up. Also pin 26 (RX) makes the LED constantly lit.

The crystal i'm using at the minute is farnell.com part number 485081  - http://uk1.farnell.com/Search/level_5.jhtml?PRODID=47684&SKUID=45669 - which is 10mhz

case style - HC49/4H

frequency accuracy ppm @ 25° C - 30  

temp. stability - 50ppm  

temp. range ° C -20 to + 70  

Load cap - 30 pF  

I'm using a core pcb ordered from Mikes shop (the crystal is at a 90° angle to the core so theres no way it can be touching).

Thanks!

Posted

Hi,

this crystal *should* also be ok, but I cannot guarantee this 100%.

Biggest problem is, that some distributors don't specify the serial or parallel type, although it's very important.

I will start a new topic now where all people should write down the ordering numbers of successfully tested crystals.

To your core module problem: if the crystal would run with the wrong frequency (due to the serial type), the Tx pin would be active anyhow. The baudrate would be wrong, but this isn't the point here.

So I guess that there is something else (something really strange...) which causes the startup problems.

There aren't that much pin connections which are necessary to get the PIC running:

  o Pin #1 (MCLR#) must be connected via a 100 Ohm resistor to +5V

  o Pin #11 (Vdd) must be connected to +5V

  o Pin #32 (Vdd) must be connected to +5V

  o Pin #12 (Vss) must be connected to ground

  o Pin #31 (Vss) must be connected to ground

  o Pin 13/14 must be connected to the crystal & caps

and thats all...

So, since you measured all voltages, and since the crystal cannot cause a startup problem where the Tx pin doesn't get active, it must be a problem either with the PIC18F itself (try the verify option of IC-Prog in order to ensure that they bootstrap loader is still in flash memory) or with the 33 pF caps. Are you sure that these are 33 pF (pico-farad) caps which you using (I remember somebody who used 33 nF caps instead)

Best Regards, Thorsten.

Posted

Hi!

Can I just say a big thank you to you Thorsten. I know you don't have to help us electronic newbies, but believe me when i say i appreciate it!

Well i looked at your suggestion, tested the connections and looked up the marking of my Capacitors (33J meaning 33pF), then i re-burnt the firmware.

Now when i apply power and place the LED between middle pin of midi out (its the easiest ground on the top of the core) and pin 25 of PIC, it is constantly lit, and flickers every 2 seconds or so!!! Which is much better than off :D. Does this mean my core is finally working properly?

Just out of interest i did a read all in ICProg before and it looked like the test_tx.hex firmware was on it  ::).

Well i dont know if it's premature but i'm certainly very very very happy :)

:EDIT I still get no sysex on start up tho :).  I get black squares on my LCD now tho (after i turned up the contrast!  ::))! - I think the reason i don't see sysex is because midi ox isn't set up, as i connected the in and out of my computer together and it doesnt register what i send! :-/

Posted

Well i feel rather foolish!  ;D

You know why i wasn't recieving any sysex? I'd wired up my midi back to front!

For any newbies like myself in the future, on TK's schematic the Rear of the MIDI socket means the TAG side not the side you plug a cable into   ::). (THANKS flownez!!!)

I switched my midibox on and was greeted with F0 00 00 7E 40 00 01 F7 !!!!!!!!!!!!!!! Every second or so.

I'm just going to try uploading the mios_v1_3.syx,

:D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...