Professional Documents
Culture Documents
Christopher L. Padua
Figure 5 Figure 11
The next steps are putting LED ‘ON’
on PB7 by sending an 8-bit value as
shown in Figure 12, and by using the
‘Single bit’ output method as shown
in Figure 13.
Figure 6
Figure 12
Figure 7
The next step is repeating steps 1 to
4 using Hex notation. “0x” syntax is
used in order for the program to
recognize the entry in hexadecimal.
The result is shown in Figure 8 to 11. Figure 13
The other method to set the LED
‘ON’ is by the use of masking as
shown in Figure 14.
Figure 8
Figure 15
The last step in this activity is writing
a program with at least 20 Outputs
Figure 9 that writes different values to port B
by using 4 different methods
(Hexadecimal, Decimal, Single bit,
and Masking). The Results are
shown in Figure 16 to 19
Figure 21
the last step for the ‘Delay’
experiment, a program was created
where LEDs 0 to 7 will light up one by
one, then will turn all off and back on
and a delay instruction was used to
make the actual E-blocks viewable.
The result is shown in Figure 22.
Figure 20
The next step is using the same
exercise, a delay starting from 1 sec
and then shorter delay for each
step until it is to fast for the eyes to
detect 2 different LED outputs was
done as shown in Figure 21.
Figure 22
IV. Conclusion
In this experiment, the use of
Flowcode was introduced and
creating a program with the use of
‘Output’ and ‘Delay’ instructions.
The Flowcode enables the creation
of a basic switching LED that is
connected on the port B output of
the microcontroller. Different
output method was also introduced
such as decimal, hexadecimal, single
bit, and masking for different
outputs that will light up the LEDs.
For the use of hexadecimal, the
syntax ‘0x’ must be added on the
first value in order for it to be
recognized by the program. For the
‘Delay’ instruction, it allows the user
to observe the step by step flow of
the output of a program that was
created because microcontrollers
process data at a very fast rate that
makes it difficult to be observed.
V. Reference
• IoT Agenda. (2019). What is
microcontroller? - Definition
from WhatIs.com. [online]
Available at:
https://internetofthingsage
nda.techtarget.com/definiti
on/microcontroller
[Accessed 13 Jun. 2019].
• Matrixtsl.com. (2019).
Matrix - Flowcode 8 -
Flowchart Programming for
PIC and Arduino. [online]
Available at:
https://www.matrixtsl.com
/flowcode/ [Accessed 13
Jun. 2019].