The HT48FXX series of MCUs have two Data Memory banks, Bank 0 and Bank 1. If it is required to execute operations on the Data Memory, how can the bank selection be determined?
Answer In the HT48FXX series of MCUs, the value of the Bank Pointer, BP, determines which bank is read or written to. If BP is equal to 0, then the Data Memory Bank 0 is selected, if BP is equal to 1, then Bank 1 is selected. It is important to note that when reading or writing to Ban 1, the Memory Pointer MP1, must be used to indirectly address this bank, any other addressing methods will have no effect.