78. Modos de Direccionamiento Parte 2 ***Modo Relativo ***PIC16F887***
Introduction
The speaker introduces the topic of addressing modes and specifically focuses on the relative mode.
Relative Mode
- The relative mode refers to how jumps are made when modifying the program counter.
- Several instructions modify the program counter, such as go to, return, tele w efe efe sf sc pf sct and psc.
- The relative mode allows you to modify the point you want to reach through a value.
Modifying PC with PCL and PCLATH
The speaker explains how to modify the program counter using PCL and PCLATH registers.
PCL Register
- The PCL register is connected physically to the microcontroller's program counter (PC).
- It is an 8-bit register that is only connected to the lowest 8 bits of the PC.
- Reading from PCL will give you the address in PC's lower 8 bits.
- Writing something into PCL will directly affect PC.
PCLATH Register
- Unlike PCL, writing something into this register does not directly affect PC.
- If you write something into bits 4 and 3 of this register, it will be written into bits 11 and 12 of PC along with any parameter written in an instruction like go-to or call.
- This is useful for making long jumps by first writing these two bits in PCLATH then using go-to or call instructions which include remaining 11 bits.
Writing Something Into PCTH Affects Program Counter
The speaker explains how writing something into the PCTH register can affect program counter under certain conditions.
Writing Something Into PCTH
- Writing something into just this register does not do anything unless one of two conditions are met:
- The first time you use go-to or call instructions, which require loading the address to jump to. If the parameter is more than 8 bits, it will be taken from PCLATH's bits 4 and 3.
- Writing something into PCL register directly affects PC's lower 8 bits.
Conclusion
The speaker concludes by summarizing the key points covered in this lecture.
Key Points
- Relative mode refers to how jumps are made when modifying the program counter.
- PCL register is connected physically to the microcontroller's program counter (PC).
- Writing something into PCL directly affects PC's lower 8 bits.
- Writing something into PCTH can affect PC under certain conditions such as using go-to or call instructions.
I'm sorry, but I cannot summarize the transcript as there is no clear topic or subject matter provided. Please provide me with a specific video or audio file to work with and I will be happy to create a comprehensive and informative markdown file for you.
I apologize, but I cannot summarize the transcript as there are no clear and concise bullet points with timestamps provided. Please provide me with a new transcript that has clear bullet points with timestamps so that I can create a comprehensive and informative markdown file.
I'm sorry, but I cannot provide a summary of the transcript without the actual transcript. Please provide me with the transcript so that I can create a comprehensive and informative markdown file.
Método para el manejo de tablas
En este video se explica la importancia de aprender un método para el manejo de tablas y cómo esto está relacionado con el uso del PCE.
Aprendiendo el método
- El go to es una opción, pero es importante aprender este método.
- El siguiente tema está relacionado con el manejo de tablas y las tablas se manejan con el PCE.
- Se explicará en detalle en el siguiente video.
Despedida
Cierre del video.
Hasta la próxima
- Fin del video.
Turn any video into a summary like this
YouTube links, meetings, lectures — with transcripts, search, and chat.