DT's INT's on 16F1936 an other stuff


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Re: DT's INT's on 16F1936 an other stuff

    Thanks for the reply. So I feel better about the interrupts. Serout, ok.

    Code:
    asm
     __config _CONFIG1,_FOSC_INTOSC & _CLKOUTEN_OFF & _MCLRE_ON & _BOREN_OFF & _WDTE_OFF & _FCMEN_OFF & _CP_OFF & _CPD_OFF & _IESO_OFF
     __config _CONFIG2, _WRT_OFF & _PLLEN_OFF & _STVREN_ON & _BORV_LO 
    endasm  
    define  osc 8 
        OSCCON=%01110000   ;1110=8Mhz                                                   
        ANSELA=0   
        ANSELB=0    
        ADCON0=0
        PortA=0
        PortB=0                                      
        PortC=0 
        TrisA=0                                                                                
        TrisB=0        
        TrisC=0 
    
    Start:  
        toggle LatA.1
        pause 100
        toggle LatA.1
        serout2 USB_Tx,188, ["    Hello USB World",13,10]     'working 188 at 9600baud on com15 @8Mhz 
        pause 3000
        goto Start
    At mode 84 I'm getting 19200baud. Beats me what is going on. Of course if its working fine, not a big deal.
    Wayne

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,695


    Did you find this post helpful? Yes | No

    Default Re: DT's INT's on 16F1936 an other stuff

    there the problem
    define osc 8
    should be
    define OSC 8
    Warning I'm not a teacher

  3. #3
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Re: DT's INT's on 16F1936 an other stuff

    thanks Richard, I try that out. thats something I never thought about.
    Wayne

  4. #4
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Re: DT's INT's on 16F1936 an other stuff

    Changing "osc" to "OSC" did the trick. Com now acting as it should.
    Thanks.

Similar Threads

  1. Program works!, however dont understand some DT-INT stuff.
    By wdmagic in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 22nd April 2013, 07:13
  2. Capacitive sensing module on 16f1936
    By grahamg in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 25th April 2010, 15:17
  3. 16f1936
    By grahamg in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th April 2010, 11:03
  4. Using both hardware int and Timer Int together?
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th January 2010, 02:09
  5. 16F1936 doesn't seem to be supported?
    By ShortBus in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th October 2009, 16:56

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