Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. PIC C interrupt using #int_global

PIC C interrupt using #int_global

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lucky the code machine
    wrote on last edited by
    #1

    Hi all, I know this is cheeky in the C++ section but pleeease help me!! I need to shave some time off of the compiler generated interrupt code. In the code below (#int_gobal with compiler generated interrupt code within it) this shoul compile then work the same as it previously did but the compiler stops on '03.5', this is the status register bit 5 so i tryed 'BTFSC STATUS,5' but that didnt work either. Im very confused, please help me. #int_global isr() { // Will be programmed at location 4 #asm BTFSC 03.5 GOTO 00A MOVWF 25 SWAPF 03,W MOVWF 26 GOTO 00F ........ etc .... #endasm } :(( :confused: :(( :(( An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky

    R 1 Reply Last reply
    0
    • L Lucky the code machine

      Hi all, I know this is cheeky in the C++ section but pleeease help me!! I need to shave some time off of the compiler generated interrupt code. In the code below (#int_gobal with compiler generated interrupt code within it) this shoul compile then work the same as it previously did but the compiler stops on '03.5', this is the status register bit 5 so i tryed 'BTFSC STATUS,5' but that didnt work either. Im very confused, please help me. #int_global isr() { // Will be programmed at location 4 #asm BTFSC 03.5 GOTO 00A MOVWF 25 SWAPF 03,W MOVWF 26 GOTO 00F ........ etc .... #endasm } :(( :confused: :(( :(( An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      i duuno much about PICs, but other controlers ... so ... first, why not doing all the stuff in asm ? ... secondly, giving 03 will always work whereas STATUS must be an alias and should be used only if it is defined somewhere as being equal to 03 (like an #include STATUS 03)(check the include files and/or your compiler settings) Could you post the BTFSC description function ?? ~RaGE();

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups