Commit Graph

33 Commits

Author SHA1 Message Date
e595fcc78f In main() configure Timer1 as PWM and PB6 as output. 2022-05-29 16:56:20 +02:00
e6fe8a9503 Change PWM on time to 10 of 1000 for testing. 2022-05-29 16:54:25 +02:00
a3192fc431 Introduce functions that configures Timer 1 with Fast PWM. 2022-05-29 16:47:15 +02:00
96ac9f1507 Create simple alternating voltage by naively switching ports off and on. 2022-05-27 02:21:58 +02:00
15ff1cc339 1. Use timer to print sinus of a number over serial connection. 2022-05-27 02:21:11 +02:00
180f4625a8 Fix compiler version for intellisense. 2022-05-27 02:18:20 +02:00
aaf8a9d501 Remove printfs. 2022-05-27 02:17:22 +02:00
76e89af042 Link against printf that allows floating point. Link against math library. 2022-05-24 18:59:55 +02:00
17eae752de Add commands for manipulating pins. And other CRAAAAAZY stuff. 2022-05-23 21:29:17 +02:00
90d2f0dfbf Fix pins.c 2022-05-23 21:28:20 +02:00
41f70bd135 Add file and functions for simple pin operations. 2022-05-23 21:26:15 +02:00
514cb2020b Move doc folder out of software directory. 2022-05-23 15:29:40 +02:00
3fd547f2ea Toggle PD6 instead of PC7 when timer compare interrupt occurs.
Move timer interrupt routine to timer.c
Change timer parameters
2022-05-13 01:24:38 +02:00
510cba47b1 Change README. 2022-05-12 21:41:46 +02:00
3d5fff615b Configure PC7 pin as output. 2022-05-12 20:26:38 +02:00
4962ce9009 Adding switch command. 2022-05-12 20:26:12 +02:00
ee8f6387ad Add command and play around with shit. Change atoi() with strtol() because it is safer.
§
2022-05-12 18:25:38 +02:00
6d8e00b162 Rename function cmd_collect() to cmd_collect_char(). 2022-05-12 04:58:47 +02:00
43c3848d2a Activate serial receive interrupt. 2022-05-12 04:46:38 +02:00
ab91d5f50e Add files for handling commands. 2022-05-12 04:44:56 +02:00
bc0acd3b1a VScode changing shit. 2022-05-12 04:43:55 +02:00
a144720297 Add info for ISP. 2022-05-12 04:43:08 +02:00
4d385e20f4 Some more changes. 2022-05-11 22:21:21 +02:00
9cb9d7f3a8 From now on, flash with ISP. Bootloader of Adafruit feather is trash. 2022-05-11 22:21:00 +02:00
609deed11e A lot of changes. UART works. Timer function work but sei() fucks shit up. 2022-05-11 20:38:02 +02:00
f2d128bfcd Change pin and delay of the toggle. 2021-12-05 00:24:16 +01:00
35e57060c6 Changing microcontroller to correct one (ATmega328p).
Changing frequency to 16 MHz.
Adding make target "flash" for flashing produced .hex file.
2021-12-05 00:22:18 +01:00
a78e007886 Adding documents. Datasheet for ATmega328p and pinout for ARD Nano. 2021-12-05 00:21:40 +01:00
6447435af0 Toggle a pin! 2021-12-02 22:28:01 +01:00
58d84aa536 Add F_CPU macro to define CPU frequency.
Necessary for delay.h
2021-12-02 22:27:10 +01:00
859e87b3d8 Adding eclipse's project files to .gitignore. 2021-12-02 22:26:04 +01:00
0e56f904d0 Adding source and Makefile 2021-12-02 21:57:19 +01:00
608fd01f29 Initial commit 2021-12-02 20:50:20 +00:00