I am using the TK500 and the ICE200 with code vision cmpiler
In my applicatio i am selecting a random number between 1 to 16.
According to the number that it selects...I am loading an array using the case command.
This is part of the code
So if the random massage is 1 then the Balace numbers will be loaded to an array called data_base_holder.
It is working fine for all the 15 numbers accept for the case 1 selection.
What i mean is...as soon as i turn on the system and lets say that the first number that is selected is number 1 then the right array will be loaded
The problem accures if the random_massae is "1" but not at the first time.
What happens is that insted of loading the whole numbers ...it loads the first letter as "0" and the rest of the numbers are ok.
This thing is cositentic and i dont know why it happens