Text this: Digital coding simulation using micro-ring resonator for long distance communication