diff --git a/gpio/max32660/fast_ring.JPG b/gpio/max32660/fast_ring.JPG new file mode 100644 index 0000000000000000000000000000000000000000..9b2ffde3ea85adc281ecf1763f9e53ea4a47589b Binary files /dev/null and b/gpio/max32660/fast_ring.JPG differ diff --git a/gpio/max32660/index.html b/gpio/max32660/index.html new file mode 100644 index 0000000000000000000000000000000000000000..a225e61245be7b6da6a2d1e648f112d9ab0ef85f --- /dev/null +++ b/gpio/max32660/index.html @@ -0,0 +1,75 @@ +<html> +<head> +<style> +pre code { + background-color: #eee; + border: 1px solid #999; + display: block; + padding: 20px; +} +</style> + + +</head> +<body> + +<h1>MAX32660</h1> + +<figure> +<img src='slow_ring.jpg' height=50%> +<figcaption>380kHz ring oscillator with the default drivers</figcaption> +</figure> + +<pre> +<code> + while (1) { + if (GPIO_InGet(&gpio_in)) { + GPIO_OutClr(&gpio_out); + } else { + GPIO_OutSet(&gpio_out); + } +} +</code> +</pre> + +<figure> +<img src='fast_ring.jpg' height=50%> +<figcaption>3.21MHz ring oscillator with port manipulation</figcaption> +</figure> + + +<pre> +<code> + /***** Includes *****/ + #include <stdio.h> + #include <stdint.h> + #include "gpio.h" + #include "max32660.h" + + /***** Definitions *****/ + #define GPIO_PORT_IN PORT_0 + #define GPIO_PIN_IN PIN_12 + + #define GPIO_PORT_OUT PORT_0 + #define GPIO_PIN_OUT PIN_10 + + int main(void) + { + while(1) { + + if (MXC_GPIO0->in & GPIO_PIN_IN) { + MXC_GPIO0->out_clr = GPIO_PIN_OUT; + } else { + MXC_GPIO0->out_set = GPIO_PIN_OUT; + } + + } + } +</code> +</pre> + +<p><a href='../../index.html'>Back</a></p> + +</body> + +</html> diff --git a/gpio/max32660/slow_ring.jpg b/gpio/max32660/slow_ring.jpg new file mode 100644 index 0000000000000000000000000000000000000000..de866ed196ec860fff611a026e61b7ebad95a5a1 Binary files /dev/null and b/gpio/max32660/slow_ring.jpg differ diff --git a/index.html b/index.html index 7d48eaadb8bbc9ba1d5a971827832c0fdd71f327..34656d5cf724fb44d7dd164454cdd9d491c76a72 100644 --- a/index.html +++ b/index.html @@ -144,4 +144,4 @@ make_graph("#wildwest","wildwest",["dev board price ($)", "ring frequency (MHz)" </body> -</html> \ No newline at end of file +</html> diff --git a/ring.json b/ring.json index aceb5515882346e732b79279020fdf305ca328c3..7bce11b872632a14021cc78ad3a743369388041a 100644 --- a/ring.json +++ b/ring.json @@ -274,7 +274,17 @@ "ic_price":3.00, "ic_sales_link":"", "ring_period":0.218 - } + }, + { + "name":"MAX32660", + "serial_number":"", + "subdirectory_path":"gpio/max32660", + "dev_board_price":15.96, + "dev_board_sales_link":"https://www.digikey.com/product-detail/en/maxim-integrated/MAX32660-EVSYS/MAX32660-EVSYS-ND/9666375", + "ic_price":4.48, + "ic_sales_link":"https://www.digikey.com/product-detail/en/maxim-integrated/MAX32660GWE-T/MAX32660GWE-TCT-ND/9655833", + "ring_period":0.3115 + } ], "wildwest":[ { @@ -298,4 +308,4 @@ "ring_period":0.169 } ] -} \ No newline at end of file +}