Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Urumbu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neil Gershenfeld
Urumbu
Commits
bbc3c934
Commit
bbc3c934
authored
Apr 12, 2021
by
Neil Gershenfeld
Browse files
Options
Downloads
Patches
Plain Diff
serial out
parent
4ea1c70c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
serialtimetest/SDS00005.png
+0
-0
0 additions, 0 deletions
serialtimetest/SDS00005.png
serialtimetest/SDS00006.png
+0
-0
0 additions, 0 deletions
serialtimetest/SDS00006.png
serialtimetest/serialtimetest.D11C.ino
+6
-2
6 additions, 2 deletions
serialtimetest/serialtimetest.D11C.ino
with
6 additions
and
2 deletions
serialtimetest/SDS00005.png
0 → 100644
+
0
−
0
View file @
bbc3c934
17.1 KiB
This diff is collapsed.
Click to expand it.
serialtimetest/SDS00006.png
0 → 100644
+
0
−
0
View file @
bbc3c934
15.7 KiB
This diff is collapsed.
Click to expand it.
serialtimetest/serialtimetest.D11C.ino
+
6
−
2
View file @
bbc3c934
...
@@ -12,16 +12,20 @@
...
@@ -12,16 +12,20 @@
// warranty is provided, and users accept all liability.
// warranty is provided, and users accept all liability.
//
//
#define pinout (1 <<
4
) // define output pin
#define pinout (1 <<
30
) // define output pin
void
setup
()
{
void
setup
()
{
SerialUSB
.
begin
(
0
);
SerialUSB
.
begin
(
0
);
Serial1
.
begin
(
460800
);
SYSCTRL
->
OSC8M
.
bit
.
PRESC
=
0
;
// set OSC8M clock prescaler to 1
SYSCTRL
->
OSC8M
.
bit
.
PRESC
=
0
;
// set OSC8M clock prescaler to 1
REG_PORT_DIR0
|=
pinout
;
// set output pin
REG_PORT_DIR0
|=
pinout
;
// set output pin
}
}
void
loop
()
{
void
loop
()
{
static
unsigned
char
chr
;
if
(
SerialUSB
.
available
())
{
if
(
SerialUSB
.
available
())
{
REG_PORT_OUT0
=
SerialUSB
.
read
();
//REG_PORT_OUT0 = SerialUSB.read();
chr
=
SerialUSB
.
read
();
Serial1
.
write
(
chr
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment