Help with PWM and duty and integers


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Location
    Mandalay,Myanmar
    Posts
    9


    Did you find this post helpful? Yes | No

    Lightbulb TRISA is not output port

    Hi JDM160

    'define ports
    green VAR TRISA.0
    red VAR TRISA.1
    blue VAR TRISA.2

    Above is your intial code.
    TRISA is data direction contrl register for PORTA.
    You should use PORTA.0,PORTA.1 and PORTA.2.
    TRISA can not be use as output port.

    a.majid
    from_myanmar

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    JDM,

    How about having a look at the PBP Manual ?
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3
    JDM160's Avatar
    JDM160 Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by a.majid
    Hi JDM160

    'define ports
    green VAR TRISA.0
    red VAR TRISA.1
    blue VAR TRISA.2

    Above is your intial code.
    TRISA is data direction contrl register for PORTA.
    You should use PORTA.0,PORTA.1 and PORTA.2.
    TRISA can not be use as output port.

    a.majid
    Really? I've gotten a similar code to work using the above port codes.. that's strange.

Similar Threads

  1. Duty Cycle Dilemmas
    By crankshaft in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th February 2003, 12:40

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts