EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Crazy problem

Crazy problem

|

Microcontroller › PIC › Crazy problem

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 2 months ago by AJISH ALFRED.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 18, 2013 at 3:53 pm #2688
    Marco Ramos
    Participant

    Hi guys, I normaly program my PIC in assembly, already did with C too in 16F PIC family. Recently I try program PIC18F4550 and simple dont happens nothing. I want just put some PORT to high to on leds and honestly I dont know what is the issue. Im using CCS compiler in MPlAB. No compile error, write well to the pic, but non tension in the PORTC.

    The code is:

     

    #include<18f4550.h>                     //Directiva de compilaƧao
     
     
    #use delay(clock=4000000)
     
    #fuses   INTRC_IO      
    #fuses   NOWDT         
    #fuses   PUT           
    #fuses   NOPROTECT   
    #fuses   NOBROWNOUT
    #fuses   NOLVP
    #fuses   NOCPD
    #fuses MCLR
     
    #byte trisc=0xF94 
    #byte portc=0xF82
    #byte latc=0xF8B 
     
    void main()
    {
          portc=0x00;
          latc=0x00;
          trisc=0x00;
          while(1)
         {
              portc=0xff;
             delay_ms(500); 
             portc=0X00;
             delay_ms(500);
         }
    }
     
    Help me please!
    October 18, 2013 at 5:07 pm #10534
    Marco Ramos
    Participant

    Already works! CCS compiler version was the problem, it works in 16F but with 18F not. Reinstal ccs again solve my problem.

    October 23, 2013 at 3:54 am #10546
    AJISH ALFRED
    Participant

    Thanks Marco for posting the Crazy problem and its solution. Useful piece of information anyway.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Sine wave distortion January 16, 2026
  • Flip Flop for My Mirrors January 16, 2026
  • potenciometer attachment / screwdriver January 16, 2026
  • flexible copper cable January 16, 2026
  • Variable audio oscillator January 16, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise