The Shop > Electronics & IC Programing

EasyPIC-6 Development Board by MikroElectronica - Take"2"

<< < (7/14) > >>

kwackers:
Unlikely you've broken it.

Make sure when you program it that there are no error messages, then check the code has 'taken' using the verify option.
Make sure you haven't inadvertently flipped any of the dip switches, make sure the crystal is in place etc.

Presumably you're powering it from the USB?

j45on:
Phew got it working again seams to have been when I started a new project I have now managed to get the led curtain code working again  :ddb:
I cant get craynerds bit of code to do anything if I delete the code on screen and paste in his it compiles with no errors but wont do anything on the easypic.
I am using usb should I not ?

kwackers:
Shouldn't need much, there was no direction set in Chris's code - try this.


--- Code: ---void main()
{
  TRISC = 0x00;          // set direction to be output
 
  while (1)
 {
    PORTC.b1 = 0;        // Turn OFF LED 1 on PORTC
    Delay_ms(1000);      // 1 second delay

    PORTC.b1 = 1;        // Turn ON LED 1 on PORTC
    Delay_ms(1000);      // 1 second delay
  }
}
--- End code ---

j45on:
 :nrocks: thanks that works
why are RC0 and RC2 led's iluminated there is nothing in the code  :scratch:

Bluechip:

--- Quote from: j45on on November 13, 2010, 03:19:02 PM --- :nrocks: thanks that works
why are RC0 and RC2 led's iluminated there is nothing in the code  :scratch:

--- End quote ---

Have a shufti at the .pdf data sheet, PortC pin functions for the uC you are using.

Most port pins have several uses, in fact I think they all do, apart from Xtal Osc pins ...

Could be something like an 'OSCOUT' or the like ... depends on the Config set-up...

Happens to me all the time ...  :loco:

WTF is it doing NOW???    , is my favourite mantra ..

Dave BC

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version