Initialization of non-existing Ports in PSoCConfigTBL.asm file.

Version 1
    Question: In the PSoCConfigTBL.asm file, why do we see the drive mode initialization of non existing port pins?



    The PSoCConfigTBL.asm file is created keeping in mind the part with the largest number of pins in the particular family. For example, consider a project with CY8C29466, which has only ports 0, 1 and 2. In the PSoCConfigTBL.asm file, we see drive mode and related initializations for non-existing ports 3 to 7 as well. The reason for this is that, the CY8C29866, the part with the largest number of GPIO’s in the CY8C29 family, has ports ranging from 0 to 7 and in CY8C29466, these port pins physically exist on the die, but are not brought out to pins. So, even if the code looks redundant for CY8C29466, the code is executed to make sure that the GPIO pins on the die are configured to their default drive mode.