CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

pic tris e port

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
microjack64



Joined: 10 Apr 2020
Posts: 7

View user's profile Send private message

pic tris e port
PostPosted: Fri Apr 10, 2020 4:25 am     Reply with quote

I am having a problem with my trise port. I have pin 9 set to output. I am outputting to a relay. I use the command out high to turn it on. The relay then gets blinking . I use gpio- g write 9 1 to turn it back on. The relay gets blinking high speed. How do I solve it ? Thank you Shocked
_________________
mini engineer at https://projectiot123.com
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Apr 10, 2020 4:41 am     Reply with quote

You really need to post your complete program. Just a small version but complete, so we can cut/paste/compile/test.
Also post what version of the compiler you're using
and what rating the power supply is !

The more information you supply, the faster/better we can help you.

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Fri Apr 10, 2020 4:59 am     Reply with quote

Repeat 50*.
I must always say what chip and what compiler version.

Pin 9 tells us nothing. Different on any one of the thousands of
different PIC models.
There is probably something like a peripheral that defaults to being
on the pin, but we have no hope of telling you this unless we know
what chip is involved.

You then also talk about "gpio- g write 9 1".
That is not a CCS instruction.
This forum is for help with the PIC using CCS C.
Are you using CCS C?.
microjack64



Joined: 10 Apr 2020
Posts: 7

View user's profile Send private message

pic tris e port
PostPosted: Fri Apr 10, 2020 7:05 am     Reply with quote

Ok i will collect all data and proteus simulation also code.
Thanks for reply.
_________________
mini engineer at https://projectiot123.com
microjack64



Joined: 10 Apr 2020
Posts: 7

View user's profile Send private message

pic tris e port
PostPosted: Fri Apr 10, 2020 7:08 am     Reply with quote

My other question is how to add code in this forum ?
Because in other forums he telling me some basics technique of adding code in ths forum.
Thanks a lot.
_________________
mini engineer at https://projectiot123.com
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Apr 10, 2020 7:30 am     Reply with quote

To 'add' code...
'cut' it from your editor.

Click on the 'code' button, just above font size normal.
'Paste' in in this area, the message body.
Click on the 'code' button again.

That should 'reformat' the program and change it's colour.

If this is ONLY a PROTEUS simulation, we can't really help. Proteus is a defective program, has been for years.
jeremiah



Joined: 20 Jul 2010
Posts: 1314

View user's profile Send private message

PostPosted: Fri Apr 10, 2020 11:15 am     Reply with quote

A side note, for CCS 99% of the time you don't need to specify the TRIS setting. Avoid using fast_io and fixed_io so that the compiler can set the TRIS for you. By default the compiler will do this for you as long as you don't tell it otherwise.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group