Search results

  1. M

    Assigned IRQ interrupt to digital pin

    Thank you KurtE, I did not know this thing: "" to use objdump to disassemble code and look to see the actual startup ... "" Dear Poul, the most correct question would have been: Excuse me, what job do you do? Or what is your profession? But I could also answer "The boy at the gas station (45...
  2. M

    Assigned IRQ interrupt to digital pin

    since I learned to use structures and enumerators, I tried to set up base on kinetis.h, and base on other MK20DX256.h files. I believe that there must be a logical order of those instructions. For example, if, first of all, do not block WDOG, nothing turns. After it all you need to setup the...
  3. M

    Assigned IRQ interrupt to digital pin

    Guys I need help . After spending many hours reading a part of Joseph Yiu's book about M4 processor, I have to say that he often uses CMSIS-Core libraries in his examples, and completely ignores any form of Startup .s file. "Completely ignores" because hi use in his examples only ready...
  4. M

    Assigned IRQ interrupt to digital pin

    While I wait for the book. I thought about using the IAR ARM version to understand the behavior of the registers in simulation mode. And to make a first program to turn on and off an LED, with two FOR cycles to create a delay. Apparently everything looks good in the simulation. But when I do the...
  5. M

    Assigned IRQ interrupt to digital pin

    I Agree ! I will try to do my best .
  6. M

    Assigned IRQ interrupt to digital pin

    Kurt , what i am trying to do , ( in the wrong way for sure ) it is to read the address 0x000001A4 that it is the corresponding : VECTOR_105 // 0x0000_01A4 105 or IRQ 89 Port control module Pin Detect (Port C) . Base on how the ARM work , inside that memory address it should...
  7. M

    Assigned IRQ interrupt to digital pin

    Hi Kurt , thanks for your advise . I am using Teensy 3.2 , and the Interrupt Vector is 105 , as the memory location should be 0x0000_01A4 . And since this memory is fix ( if it was not remapped) , my goal is to write on it the address of my Handler function ( My_F) . Regarding your points a) and...
  8. M

    Assigned IRQ interrupt to digital pin

    Paul , think easy , of course I read it , simply I am trying to learn how to attach my Named function to an Interrupt directly in the memory of the array .Without using your work, but not because I am not appreciate but because I must learn the way . Using a ready function do not mean knowing...
  9. M

    Assigned IRQ interrupt to digital pin

    Wait a minute .... interrupt vector are not called from the other pins of port C if you not set the other pins to make it happen . In my example , Is fix to be for only one pin , so all the other pins are free and not related to interrupt vector 85. I will try to modify the compiler option as...
  10. M

    Assigned IRQ interrupt to digital pin

    Considering that I received the book in Thailand not before August 22nd, I'm trying to do MY point. There are three things we need to do in writing an ISR. These things are: initialize the interrupt handler // ( My_F) declare the ISR function // ( My_F) define the ISR's interrupt vector...
  11. M

    Assigned IRQ interrupt to digital pin

    Yes I will . Already in process .
  12. M

    Assigned IRQ interrupt to digital pin

    Yes , you right it is how it work . But I think I must study more , because words as _attribute , week , alias , i must clear first in my head. Hard fault happen if the IRQ it is abilitate but no function are assigned .... indeed you set up a pin for input , setting characteristics of the...
  13. M

    Assigned IRQ interrupt to digital pin

    And only then , when I will understand , I will use the comfortable smart way of the final function attachedinterrupt . Because otherwise I will create even more empty holes in my brain...hahahah
  14. M

    Assigned IRQ interrupt to digital pin

    Maybe it is _VectorsRAM , if so , this word do this job ( if I am not wrong ). That why Paul clearly suggest me to study the architecture and language .
  15. M

    Assigned IRQ interrupt to digital pin

    I like your explanation , and it is work as you say , indeed it was already clear , that why I am looking for a direct call without using any pointers array table with enum or combined macro . Since I enable ISR(89) ( for the T3.2) directly setting the memory register , since is enable , my...
  16. M

    Assigned IRQ interrupt to digital pin

    No , at 45 years old what student I can be ! It is only for the pleasure to understand Learning do not have age . It is not easy , I know it , but only because I didn’t get the gear jet .... but will become easy with the time . By the way , thanks you all for your support .
  17. M

    Assigned IRQ interrupt to digital pin

    Of course , it is a beautiful creation ! Small and flexible , and super fast !
  18. M

    Assigned IRQ interrupt to digital pin

    Interrupt pin are not , but the portC it is or I am wrong ? That address I post before it is of hardware because it start with 0x0000.... So , ( I am trying to understand ) what the compiler understand , because 105 or 89 are reference for us , but the memory location where is wrote ?
  19. M

    Assigned IRQ interrupt to digital pin

    I am sorry if seen my questions are ripetitive or stupid .Or maybe I didn’t write so well English . Thanks for your explanation. Indeed the Void function portc_Isr it is a function for retrieves, so it come after . Before of it, attached_interruptVector , and of it I must understand how to...
  20. M

    Assigned IRQ interrupt to digital pin

    This are the definition and the Pointer to the function , right ? typedef void (*voidFuncPtr)(void); volatile static voidFuncPtr intFunc[CORE_NUM_DIGITAL]; That accept the max PIN number base on Device model ., right ?
  21. M

    Assigned IRQ interrupt to digital pin

    The ISR_Table was create to make our future work easy ,programming easy , as for the macros well structured . But if i want to set only one interrupt , the manual tell me the memory location of that ISR , and I believe I do not need to create any table . For sure I will need pointers . But...
  22. M

    Assigned IRQ interrupt to digital pin

    It is true, very efficient , but it not easy to read . I believe all start from the enumerated Isr table vector , so each functions is related to the table ( number in sequence ) . But it should have direct way to assign a function to the Vector memory address of ISR PortC . Is you read my...
  23. M

    Assigned IRQ interrupt to digital pin

    Hi guys !! I really need help ..... While accelerating the study on function pointers, structures, Typedefinition, enumerators, I really have difficulty reconstructing the minimum system of use of memory addresses to directly access the ISR of port C, and assign my function. Unfortunately, I...
  24. M

    Assigned IRQ interrupt to digital pin

    As Paul post , previously , https://stackoverflow.com/questions/201101/how-to-initialize-all-members-of-an-array-to-the-same-value f your compiler is GCC you can use following syntax: int array[1024] = {[0 ... 1023] = 5}; And this way it is used to create the attachedinterrupt() function...
  25. M

    Assigned IRQ interrupt to digital pin

    Hi everyone , Base on what i read over your examples and complex function pointers , i replicate some functions , but for simple int array i got error on Arduino(Teensy) IDE as : "expected identifier before numeric constant " .... why ?? example , before setup i declare a int array : int...
  26. M

    Assigned IRQ interrupt to digital pin

    THANK YOU PAUL ! Appreciate !
  27. M

    Assigned IRQ interrupt to digital pin

    Thank you Paul , you great ! I must study Concatenation , never use it before . What about voidFuncPtr intFunc[CORE_NUM_DIGITAL] = { [0 ... CORE_NUM_DIGITAL-1] = dummy_isr }; What is the meaning of those points after 0 ??? Why 3 ?
  28. M

    Assigned IRQ interrupt to digital pin

    Beautiful this forum, thanks for your clear answers .... Actually, a few months ago I was delighted on a Texas TM4C123GH6PM Cortex-M4 processor, which actually has the register for each pin. The speed of the Teensy 3.2, and its small size stimulated me to start getting to know it. (Since a week)...
  29. M

    Assigned IRQ interrupt to digital pin

    Hi guys, ( SORRY IF I DOUBLE POST , I AM NEW AND I MISTAKE FORUM ) I hope someone more capable of me can help me solve this dilemma. I'm not a professional programmer so I apologize if my question could be trivial. I am using Teensy 3.2 , great device by the way .... I do not want to use...
  30. M

    Assigned IRQ interrupt to digital pin

    Hi guys, I hope someone more capable of me can help me solve this dilemma. I'm not a professional programmer so I apologize if my question could be trivial. I am using Teensy 3.2 , great device by the way .... I do not want to use function void attachInterrupt(uint8_t pin, void...
Back
Top