Author Topic: Link Port help  (Read 2777 times)

0 Members and 1 Guest are viewing this topic.

Offline Joewawaw

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Link Port help
« on: September 12, 2014, 12:45:19 pm »
Hi,
I was reading on WikiTI that when a line on the 83+ calculator link port is pulled low, the OS responds by pulling the other line low. I wanted to disable this feature somehow (is it an interrupt?) so that i could have full control over the link port.
does anyone know how to do this? Thanks
Im using an 84+SE calculator, if that's relevant.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Link Port help
« Reply #1 on: September 12, 2014, 01:48:14 pm »
It is generally a good idea to turn off interrupts. Makes life so much easier.
If you like my work: why not give me an internet?








Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: Link Port help
« Reply #2 on: September 12, 2014, 11:46:09 pm »
If you are working with the link port, you will want to make sure that whenever any of the lines are pulled low, you disable interrupts with di, and when you are done, re-enabling them with ei. Be warned that certain OS routines will either enable interrupts or not work with interrupts off.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Link Port help
« Reply #3 on: September 15, 2014, 08:34:13 am »
You can set up your own IM 2 interrupt which will also bypass TI's interrupts, but if you don't need your own interrupt just disabling it should be fine. I dunno if there's a system flag somewhere that handles that. It's also probably best to try to avoid OS routines as much as possible when messing with the link port unless you know they don't mess with the interrupts.