gdata.io.handleScriptLoaded({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$georss":"http://www.georss.org/georss","xmlns$thr":"http://purl.org/syndication/thread/1.0","xmlns$blogger":"http://schemas.google.com/blogger/2008","id":{"$t":"tag:blogger.com,1999:blog-5735018943946871385"},"updated":{"$t":"2023-12-09T13:35:10.032-08:00"},"category":[{"term":"Hackerrank Delete duplicate-value nodes from a sorted linked list Solution"},{"term":"Hackerrank Print the elements of a linked list solution"},{"term":"PATTERNS"},{"term":"pattern generation in c"},{"term":"c++ program"},{"term":"Hackerrank Reverse a doubly linked list solution"},{"term":"programming"},{"term":"TEXT ANALYZER"},{"term":"networks"},{"term":"triangle pattern c++"},{"term":"unipolar encoding simulation"},{"term":"Hackerrank Print in Reverse solution"},{"term":"c++"},{"term":"education"},{"term":"opps sandclock pattern"},{"term":"opps triangle pattern"},{"term":"Linked Lists in C++"},{"term":"coding"},{"term":"C++ Diamond Pattern"},{"term":"hourglass pattern c++"},{"term":"hackerrank"},{"term":"java"},{"term":"c"},{"term":"Utopian tree"},{"term":"lexical analyser"},{"term":"cpp"},{"term":"Hackerrank Insert a node into a sorted doubly linked list Solution"},{"term":"java program"},{"term":"mini project"},{"term":"c programming"},{"term":"operator precedence"}],"title":{"type":"text","$t":"GRK"},"subtitle":{"type":"html","$t":"A blog by Gokul Raj Kumar"},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://www.blogger.com/feeds/5735018943946871385/posts/default/-/unipolar+encoding+simulation?alt\u003djson-in-script\u0026max-results\u003d6"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/5735018943946871385/posts/default/-/unipolar+encoding+simulation?alt\u003djson-in-script\u0026max-results\u003d6"},{"rel":"alternate","type":"text/html","href":"http://blog.grkweb.com/search/label/unipolar%20encoding%20simulation"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"}],"author":[{"name":{"$t":"GRK"},"uri":{"$t":"https://www.blogger.com/profile/00099219911209322075"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"generator":{"version":"7.00","uri":"https://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"1"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"6"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-5735018943946871385.post-2630376668556120718"},"published":{"$t":"2014-09-22T08:13:00.000-07:00"},"updated":{"$t":"2014-09-22T08:14:35.541-07:00"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"java program"},{"scheme":"http://www.blogger.com/atom/ns#","term":"unipolar encoding simulation"},{"scheme":"http://www.blogger.com/atom/ns#","term":"java"},{"scheme":"http://www.blogger.com/atom/ns#","term":"networks"}],"title":{"type":"text","$t":"UniPolar Encoding"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003ch2\u003e\n\u003cspan style\u003d\"font-size: small; font-weight: normal;\"\u003eUnipolar encoding has 2 voltage states with one of the states being 0 volts. Since Unipolar line encoding has one of its states being 0 Volts, it is also called Return to Zero (RTZ). A common example of Unipolar line encoding is the logic levels used in computers and digital logic. A logic High (1) is represented by +5V and a logic Low (0) is represented by 0V.\u003c/span\u003e\u003c/h2\u003e\n\u003ch3\u003e\n\u003cdiv style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003c/div\u003e\n\u003ccenter style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003cimg src\u003d\"http://www.telecomworld101.com/Intro2dcRev2/stdimages/page65.gif\" height\u003d\"133\" width\u003d\"523\" /\u003e\u003c/center\u003e\n\u003cdiv style\u003d\"font-size: medium; font-weight: normal;\"\u003e\nUnipolar line encoding works well for inside machines where the signal path is short but is unsuitable for long distances due to the presence of stray capacitance in the transmission medium. On long transmission paths, the constant level shift from 0 volts to 5 volts causes the stray capacitance to charge up. There will be a \"stray\" capacitor effect between any two conductors that are in close proximity to each other. Parallel running cables or wires are very suspectible to stray capacitance.\u003c/div\u003e\n\u003cdiv style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003c/div\u003e\n\u003ccenter style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003cimg src\u003d\"http://www.telecomworld101.com/Intro2dcRev2/stdimages/page65a.gif\" height\u003d\"91\" width\u003d\"553\" /\u003e\u003c/center\u003e\n\u003cdiv style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003c/div\u003e\n\u003ccenter style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003c/center\u003e\n\u003cdiv style\u003d\"font-size: medium; font-weight: normal;\"\u003e\nIf there is sufficient capacitance on the line and a sufficient stream of 1s, a DC voltage component will be added to the data stream. Instead of returning to 0 volts, it would only return to 2 or 3 volts! The receiving station may not recognize a digital low at voltage of 2 volts!\u003c/div\u003e\n\u003cdiv style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003c/div\u003e\n\u003ccenter style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003cimg src\u003d\"http://www.telecomworld101.com/Intro2dcRev2/stdimages/page65b.gif\" height\u003d\"120\" width\u003d\"413\" /\u003e\u003c/center\u003e\n\u003cdiv style\u003d\"font-size: medium; font-weight: normal;\"\u003e\nUnipolar line encoding can have synchronization problems between the transmitter and receiver's clock oscillator. The receiver's clock oscillator locks on to the transmitted signal's level shifts (logic changes from 0 to 1). If there is a long series of logical 1s or 0s in a row. There is no level shift for the receive oscillator to lock to. The receive oscillator's frequency may drift and become unsynchronized. It could lose track of where the receiver is supposed to sample the transmitted data!\u003c/div\u003e\n\u003cdiv style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003c/div\u003e\n\u003ccenter style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003cimg src\u003d\"http://www.telecomworld101.com/Intro2dcRev2/stdimages/page65c.gif\" height\u003d\"78\" width\u003d\"470\" /\u003e\u003c/center\u003e\n\u003ccenter style\u003d\"font-size: medium; font-weight: normal;\"\u003e\n\u003ci\u003eReceive oscillator may drift during the period of all 1s\u003c/i\u003e\u003c/center\u003e\n\u003c/h3\u003e\n\u003ch3 style\u003d\"text-align: left;\"\u003e\n\u003cspan style\u003d\"font-weight: normal;\"\u003e\u003cbr /\u003e\u003c/span\u003e\u003c/h3\u003e\n\u003ch3 style\u003d\"text-align: left;\"\u003e\n\u003cspan style\u003d\"font-weight: normal;\"\u003eBelow is an simulation for unipolar encoding in java.\u003c/span\u003e\u003c/h3\u003e\n\u003ch3 style\u003d\"text-align: left;\"\u003e\nSOURCE CODE:\u003c/h3\u003e\n\u003cpre style\u003d\"background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;\"\u003e\u003ccode style\u003d\"color: black; word-wrap: normal;\"\u003e import java.util.Scanner;  \n public class Lowhigh {  \n   public static void main(String[] args) {  \n     String input \u003d \"\";  \n     String line1 \u003d \"\";  \n     String line2 \u003d \"\";  \n     String line3 \u003d \"\";  \n     int flag \u003d 0, i;  \n     Scanner inputs \u003d new Scanner(System.in);  \n     System.out.print(\"Enter the binary number :\");  \n     input \u003d inputs.next();  \n     for (i \u003d 0; i \u0026lt; input.length(); i++) {  \n       if (input.charAt(i) \u003d\u003d '1') {  \n         if (flag \u003d\u003d 0) {  \n           line1 +\u003d \" \";  \n           line2 +\u003d \"|\";  \n           line3 +\u003d \"|\";  \n           flag \u003d 1;  \n         }  \n         line1 \u003d line1 + \" _ \";  \n         line2 \u003d line2 + \"  \";  \n         line3 \u003d line3 + \"  \";  \n       } else {  \n         if (flag \u003d\u003d 1) {  \n           line1 +\u003d \" \";  \n           line2 +\u003d \"|\";  \n           line3 +\u003d \"|\";  \n           flag \u003d 0;  \n         }  \n         line1 \u003d line1 + \"  \";  \n         line2 \u003d line2 + \"  \";  \n         line3 \u003d line3 + \" _ \";  \n       }  \n     }  \n     System.out.println(line1);  \n     System.out.println(line2);  \n     System.out.println(line3);  \n   }  \n }  \n\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003ca href\u003d\"http://1.bp.blogspot.com/-PdnN4Szsm6s/VCA7XbLD7jI/AAAAAAAAAlI/OPqWQRAz9Wo/s1600/output.jpg\" imageanchor\u003d\"1\" style\u003d\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"\u003e\u003cimg border\u003d\"0\" src\u003d\"http://1.bp.blogspot.com/-PdnN4Szsm6s/VCA7XbLD7jI/AAAAAAAAAlI/OPqWQRAz9Wo/s1600/output.jpg\" height\u003d\"347\" width\u003d\"640\" /\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cbr /\u003e\u003c/div\u003e\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://blog.grkweb.com/feeds/2630376668556120718/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://blog.grkweb.com/2014/09/unipolar-encoding.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/5735018943946871385/posts/default/2630376668556120718"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/5735018943946871385/posts/default/2630376668556120718"},{"rel":"alternate","type":"text/html","href":"https://blog.grkweb.com/2014/09/unipolar-encoding.html","title":"UniPolar Encoding"}],"author":[{"name":{"$t":"GRK"},"uri":{"$t":"https://www.blogger.com/profile/00099219911209322075"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"http://1.bp.blogspot.com/-PdnN4Szsm6s/VCA7XbLD7jI/AAAAAAAAAlI/OPqWQRAz9Wo/s72-c/output.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}}]}});