The rising demand for bandwidth in optical communication networks has led to the need for more efficient solutions for spectrum allocation. This article presents a solution to enhance the capacity and efficiency of passive optical networks (PON) using optical microring resonators and dynamic spectrum allocation. The solution relies on wavelength division multiplexing (WDM). It proposes using a support vector machine (SVM) and a Routing, Modulation Level, and Spectrum Assignment (RMLSA) method to manage spectrum allocation based on the bandwidth and distance of multiple requests. The network employs a pulse shaper to physically allocate the spectrum, allowing for the separation of the spectrum generated by the microring resonators into different wavelengths or wavelength ranges (super-channel). Additionally, the SVM and RMLSA algorithms regulate the pulse shaper to execute the allocation. This photonic network achieves improved spectrum utilization and reduces the network blocking probability. Our proposal shows that we successfully addressed 1090 requests with a zero blocking probability, accounting for 81% of the total requests. These request scenarios can simultaneously accommodate up to 200 requests, with a maximum bandwidth of 31 THz. This highlights the efficacy of our approach in efficiently managing requests with substantial processing capacity.