{"id":3990,"date":"2024-04-13T08:55:52","date_gmt":"2024-04-13T03:25:52","guid":{"rendered":"https:\/\/cthecosmos.com\/?p=3990"},"modified":"2024-04-13T08:55:52","modified_gmt":"2024-04-13T03:25:52","slug":"aurix-tc375-gpios","status":"publish","type":"post","link":"https:\/\/cthecosmos.com\/?p=3990","title":{"rendered":"Aurix TC375 GPIO&#8217;s"},"content":{"rendered":"\n<p class=\"has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-6c7cdf639cd168799a46747d785dfffe\" style=\"font-size:17px;line-height:1.8\"><strong>GPIO <\/strong>stands for<strong><em> General Purpose Input\/Output<\/em><\/strong>. It&#8217;s a basic pin on a microcontroller that can be configured as either an input or an output.<br><br>GPIO pins can be used for various purposes. They are not specialized for any particular function, which gives designers flexibility.\u00a0GPIOs can be used to implement basic digital communication protocols like bit-banging, where software directly manages the high and low states of pins to emulate communication protocols<br><br>GPIOs provide a simple and low-overhead mechanism to interact with the outside world. For many simple tasks, using dedicated hardware interfaces can be overkill and costly. GPIOs offer a cost-effective way to achieve many functionalities. <br><br>GPIO pins often can be configured to generate interrupts on specific conditions, like a rising edge, falling edge, or both. This is useful for event-driven tasks. While named &#8220;<strong>General Purpose<\/strong>,&#8221; GPIO pins on many MCUs can also serve alternate functions, such as communication interfaces (SPI, I2C, UART) or analog inputs.<br><br><br>In Aurix, <strong><em>TC375LK<\/em><\/strong>, Each Port module \u201c<strong>Port slice<\/strong>\u201d controls a set of assigned General Purpose Input\/Output (GPIO) port lines which are connected to pads connected to device pins\/balls.<br><br>Depending on its configuration a Port module can have the following features:<br><br>&#8211; Controls up to 16 port lines.<br>&#8211; Enables SW to control the output of each port line.<br>&#8211; Output modification registers ease clearing, setting and toggling of single port lines and nibbles of port lines<br>without affecting the state of other port lines.<br>&#8211; Enables SW to read the input value of each port line.<br>&#8211; Multiplexes up to 7 alternate functions to each output.<br>&#8211; Supports direct I\/O control by a peripheral on a per-line granularity.<br>&#8211; The emergency stop feature allows to switch off the output driver of configurable port lines by SMU or special port pins.<br>&#8211; In packages with reduced pin count the Port module can disable selected pins.<br><br>Most of the digital GPIO lines have an <strong><em>emergency stop logic<\/em><\/strong>. This logic makes it possible to individually disconnect outputs and put them onto a well-defined logic state in an emergency case. In an emergency case, the pin is switched to an input function with internal pull-up device connected or tri-state (depending on global configuration). The Emergency Stop Register Pn_ESR determines whether an output is enabled or disabled in an emergency case.<br><br>Each 32-bit wide port input\/output control register controls four GPIO port lines:<br><br>Register Pn_IOCR0 controls the Pn.[3:0] port lines<br>Register Pn_IOCR4 controls the Pn.[7:4] port lines<br>Register Pn_IOCR8 controls the Pn.[11:8] port lines<br>Register Pn_IOCR12 controls the Pn.[15:12] port lines<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"861\" data-attachment-id=\"3993\" data-permalink=\"https:\/\/cthecosmos.com\/?attachment_id=3993\" data-orig-file=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/infenion1.jpeg?fit=615%2C861&amp;ssl=1\" data-orig-size=\"615,861\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"infenion1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/infenion1.jpeg?fit=214%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/infenion1.jpeg?fit=615%2C861&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/infenion1.jpeg?resize=615%2C861&#038;ssl=1\" alt=\"\" class=\"wp-image-3993\" style=\"width:690px;height:auto\" \/><figcaption class=\"wp-element-caption\">Img Src: Aurix TC375LK Datasheet.<\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color has-medium-font-size wp-elements-486e7799b35920eece0029316d5e98bd\" style=\"background:linear-gradient(135deg,rgb(35,23,11) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)\">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><strong>An Article by: <\/strong>Yashwanth Naidu Tikkisetty<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GPIO, or General Purpose Input\/Output, pins on microcontrollers offer flexibility for various functions. They can be used for digital communication protocols and event-driven tasks. Additionally, they can serve alternate functions and have an emergency stop feature for individual output disconnection. Each 32-bit wide port input\/output control register controls four GPIO port lines, providing detailed control.<\/p>\n<a href=\"https:\/\/cthecosmos.com\/?p=3990\" class=\"more-link\">Read More <span class=\"screen-reader-text\">Aurix TC375 GPIO&#8217;s<\/span><\/a>","protected":false},"author":120055267,"featured_media":3995,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false},"categories":[30181,952411],"tags":[770793751,772321193,320213,1354040],"class_list":{"0":"post-3990","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-embedded-systems","8":"category-short-articles","9":"tag-aurix-tc375lk","10":"tag-embedded-systems","11":"tag-microcontroller","12":"tag-short-article","14":"fallback-thumbnail"},"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/pexels-photo-1624496.jpeg?fit=867%2C1300&ssl=1","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8CiEf-12m","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/users\/120055267"}],"replies":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3990"}],"version-history":[{"count":5,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3990\/revisions"}],"predecessor-version":[{"id":3997,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3990\/revisions\/3997"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/media\/3995"}],"wp:attachment":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}